set bold font for Online/Offline strings and for connected Friends

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1705 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-30 22:10:49 +00:00
parent dee82c5f1b
commit 10aef0b027
2 changed files with 21 additions and 19 deletions

View File

@ -37,8 +37,7 @@
#include "util/PixmapMerging.h" #include "util/PixmapMerging.h"
#include "LogoBar.h" #include "LogoBar.h"
#include "util/Widget.h" #include "util/Widget.h"
//#include "gui/connect/InviteDialog.h"
//#include "gui/connect/AddFriendDialog.h"
#include "gui/connect/ConnectFriendWizard.h" #include "gui/connect/ConnectFriendWizard.h"
#include "MessagesPopupDialog.h" #include "MessagesPopupDialog.h"
@ -80,8 +79,6 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this); ui.setupUi(this);
//RshareSettings config;
//config.loadWidgetInformation(this);
connect( ui.messengertreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( messengertreeWidgetCostumPopupMenu( QPoint ) ) ); connect( ui.messengertreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( messengertreeWidgetCostumPopupMenu( QPoint ) ) );
@ -93,7 +90,6 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
connect( ui.messengertreeWidget, SIGNAL(itemDoubleClicked ( QTreeWidgetItem *, int)), this, SLOT(chatfriend2())); connect( ui.messengertreeWidget, SIGNAL(itemDoubleClicked ( QTreeWidgetItem *, int)), this, SLOT(chatfriend2()));
/* to hide the header */ /* to hide the header */
ui.messengertreeWidget->header()->hide(); ui.messengertreeWidget->header()->hide();
@ -108,9 +104,6 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
_header->resizeSection ( 0, 200 ); _header->resizeSection ( 0, 200 );
/* Create all the dialogs of which we only want one instance */
//_mainWindow = new MainWindow();
//LogoBar //LogoBar
_rsLogoBarmessenger = NULL; _rsLogoBarmessenger = NULL;
_rsLogoBarmessenger = new LogoBar(ui.logoframe); _rsLogoBarmessenger = new LogoBar(ui.logoframe);
@ -123,6 +116,9 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
updateAvatar(); updateAvatar();
itemFont = QFont("ARIAL", 10);
itemFont.setBold(true);
/* Hide platform specific features */ /* Hide platform specific features */
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
@ -232,6 +228,7 @@ void MessengerWindow::insertPeers()
{ {
online_items.append(item); online_items.append(item);
item -> setIcon(0,(QIcon(IMAGE_ONLINE))); item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
item -> setFont(0,itemFont);
} }
else else
{ {
@ -250,9 +247,11 @@ void MessengerWindow::insertPeers()
/* add all the labels */ /* add all the labels */
/* (0) Person */ /* (0) Person */
item -> setText(0, "Online"); item -> setText(0, tr("Online"));
item -> addChildren(online_items); item -> addChildren(online_items);
item -> setIcon(0,(QIcon(IMAGE_ON))); item -> setFont(0,itemFont);
//item -> setIcon(0,(QIcon(IMAGE_ON)));
peerWidget->addTopLevelItem(item); peerWidget->addTopLevelItem(item);
peerWidget->expandItem(item); peerWidget->expandItem(item);
} }
@ -263,12 +262,13 @@ void MessengerWindow::insertPeers()
/* add all the labels */ /* add all the labels */
/* (0) Person */ /* (0) Person */
item -> setText(0, "Offline"); item -> setText(0, tr("Offline"));
item -> addChildren(offline_items); item -> addChildren(offline_items);
item -> setFont(0,itemFont);
peerWidget->addTopLevelItem(item); peerWidget->addTopLevelItem(item);
peerWidget->expandItem(item); peerWidget->expandItem(item);
item -> setIcon(0,(QIcon(IMAGE_OFF))); //item -> setIcon(0,(QIcon(IMAGE_OFF)));
} }
peerWidget->update(); /* update display */ peerWidget->update(); /* update display */

View File

@ -123,6 +123,8 @@ private:
LogoBar * _rsLogoBarmessenger; LogoBar * _rsLogoBarmessenger;
QFont itemFont;
/** Qt Designer generated object */ /** Qt Designer generated object */
Ui::MessengerWindow ui; Ui::MessengerWindow ui;
}; };