Small Tweaks.

* Removed services toolbar - until it is needed.
 * Removed background on MessengerWindow - it breaks on linux.
 * fixed Messages Html problem.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@518 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-04-24 12:58:27 +00:00
parent 4e03fa5d06
commit 98eabbabe0
3 changed files with 20 additions and 17 deletions

View File

@ -115,6 +115,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
_bandwidthGraph = new BandwidthGraph(); _bandwidthGraph = new BandwidthGraph();
messengerWindow = new MessengerWindow(); messengerWindow = new MessengerWindow();
messengerWindow->hide(); messengerWindow->hide();
//messengerWindow->show();
applicationWindow = new ApplicationWindow(); applicationWindow = new ApplicationWindow();
applicationWindow->hide(); applicationWindow->hide();
@ -196,6 +197,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
ui.toolBar->addSeparator(); ui.toolBar->addSeparator();
connect(grp, SIGNAL(triggered(QAction *)), ui.stackPages, SLOT(showPage(QAction *))); connect(grp, SIGNAL(triggered(QAction *)), ui.stackPages, SLOT(showPage(QAction *)));
/* Select the first action */
grp->actions()[0]->setChecked(true);
// Allow to play files from SharedFilesDialog. // Allow to play files from SharedFilesDialog.
connect(sharedfilesDialog, SIGNAL(playFiles( QStringList )), this, SLOT(playFiles( QStringList ))); connect(sharedfilesDialog, SIGNAL(playFiles( QStringList )), this, SLOT(playFiles( QStringList )));
@ -211,16 +214,13 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
toolAct->setText("Service"); toolAct->setText("Service");
toolAct->setShortcut(tr("Ctrl+T")); toolAct->setShortcut(tr("Ctrl+T"));
toolAct->setIcon(QIcon(":/images/blockdevice2.png")); toolAct->setIcon(QIcon(":/images/blockdevice2.png"));
ui.toolBar->addAction(toolAct); //ui.toolBar->addAction(toolAct);
/* Select the first action */
grp->actions()[0]->setChecked(true);
/* Select the first action */
/* Create the Service pages and actions */ /* Create the Service pages and actions */
QActionGroup *servicegrp = new QActionGroup(this); QActionGroup *servicegrp = new QActionGroup(this);
#if 0
LinksDialog *linksDialog = NULL; LinksDialog *linksDialog = NULL;
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages), ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), servicegrp)); createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), servicegrp));
@ -237,6 +237,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
ui.stackPages->add(photoDialog = new PhotoDialog(ui.stackPages), ui.stackPages->add(photoDialog = new PhotoDialog(ui.stackPages),
createPageAction(QIcon(IMAGE_PHOTO), tr("Photo View"), servicegrp)); createPageAction(QIcon(IMAGE_PHOTO), tr("Photo View"), servicegrp));
#endif
/* Create the toolbarservice */ /* Create the toolbarservice */

View File

@ -465,7 +465,6 @@ void MessagesDialog::insertMsgTxtAndFiles()
ui.filesText->setText(""); ui.filesText->setText("");
ui.subjectText->setText(""); ui.subjectText->setText("");
//ui.msgText->setText("");
ui.msgList->clear(); ui.msgList->clear();
return; return;
@ -574,7 +573,7 @@ void MessagesDialog::insertMsgTxtAndFiles()
ui.fromText->setText(QString::fromStdString(rsPeers->getPeerName(msgInfo.srcId))); ui.fromText->setText(QString::fromStdString(rsPeers->getPeerName(msgInfo.srcId)));
ui.subjectText->setText(QString::fromStdWString(msgInfo.title)); ui.subjectText->setText(QString::fromStdWString(msgInfo.title));
ui.msgText->setText(QString::fromStdWString(msgInfo.msg)); ui.msgText->setHtml(QString::fromStdWString(msgInfo.msg));
{ {
std::ostringstream out; std::ostringstream out;

View File

@ -104,20 +104,23 @@ MessengerWindow::MessengerWindow(QWidget * parent)
ui.statuscomboBox->setMinimumWidth(20); ui.statuscomboBox->setMinimumWidth(20);
ui.messagecomboBox->setMinimumWidth(20); ui.messagecomboBox->setMinimumWidth(20);
ui.searchlineEdit->setMinimumWidth(20); ui.searchlineEdit->setMinimumWidth(20);
QPixmap Backpixmap((QString)":/images/backgroundimage.png"); /* The background palette breaks MessengerWindow in Linux...
//QPixmap pixmap5((QString)REC_PATH+(QString)"back2765.png"); * so it is disabled until a solution is found.
*/
QBrush BackBrush(Backpixmap); #if 0
QPixmap Backpixmap((QString)":/images/backgroundimage.png");
//QBrush BackBrush(Backpixmap);
QPalette BackPalette(BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush); QPalette BackPalette(BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush, BackBrush);
this->setPalette(BackPalette); //Set Background this->setPalette(BackPalette); //Set Background
#endif
/* Hide platform specific features */
/* Hide platform specific features */ #ifdef Q_WS_WIN
#ifdef Q_WS_WIN #endif
}
#endif
}
void MessengerWindow::messengertreeWidgetCostumPopupMenu( QPoint point ) void MessengerWindow::messengertreeWidgetCostumPopupMenu( QPoint point )
{ {