mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
dee82c5f1b
commit
10aef0b027
@ -37,8 +37,7 @@
|
||||
#include "util/PixmapMerging.h"
|
||||
#include "LogoBar.h"
|
||||
#include "util/Widget.h"
|
||||
//#include "gui/connect/InviteDialog.h"
|
||||
//#include "gui/connect/AddFriendDialog.h"
|
||||
|
||||
#include "gui/connect/ConnectFriendWizard.h"
|
||||
|
||||
#include "MessagesPopupDialog.h"
|
||||
@ -80,8 +79,6 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
//RshareSettings config;
|
||||
//config.loadWidgetInformation(this);
|
||||
|
||||
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()));
|
||||
|
||||
|
||||
|
||||
/* to hide the header */
|
||||
ui.messengertreeWidget->header()->hide();
|
||||
|
||||
@ -108,9 +104,6 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
|
||||
_header->resizeSection ( 0, 200 );
|
||||
|
||||
/* Create all the dialogs of which we only want one instance */
|
||||
//_mainWindow = new MainWindow();
|
||||
|
||||
//LogoBar
|
||||
_rsLogoBarmessenger = NULL;
|
||||
_rsLogoBarmessenger = new LogoBar(ui.logoframe);
|
||||
@ -123,6 +116,9 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
||||
|
||||
updateAvatar();
|
||||
|
||||
itemFont = QFont("ARIAL", 10);
|
||||
itemFont.setBold(true);
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
@ -232,6 +228,7 @@ void MessengerWindow::insertPeers()
|
||||
{
|
||||
online_items.append(item);
|
||||
item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||
item -> setFont(0,itemFont);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -250,9 +247,11 @@ void MessengerWindow::insertPeers()
|
||||
|
||||
/* add all the labels */
|
||||
/* (0) Person */
|
||||
item -> setText(0, "Online");
|
||||
item -> setText(0, tr("Online"));
|
||||
item -> addChildren(online_items);
|
||||
item -> setIcon(0,(QIcon(IMAGE_ON)));
|
||||
item -> setFont(0,itemFont);
|
||||
|
||||
//item -> setIcon(0,(QIcon(IMAGE_ON)));
|
||||
peerWidget->addTopLevelItem(item);
|
||||
peerWidget->expandItem(item);
|
||||
}
|
||||
@ -263,12 +262,13 @@ void MessengerWindow::insertPeers()
|
||||
|
||||
/* add all the labels */
|
||||
/* (0) Person */
|
||||
item -> setText(0, "Offline");
|
||||
item -> setText(0, tr("Offline"));
|
||||
item -> addChildren(offline_items);
|
||||
item -> setFont(0,itemFont);
|
||||
|
||||
peerWidget->addTopLevelItem(item);
|
||||
peerWidget->expandItem(item);
|
||||
item -> setIcon(0,(QIcon(IMAGE_OFF)));
|
||||
//item -> setIcon(0,(QIcon(IMAGE_OFF)));
|
||||
}
|
||||
|
||||
peerWidget->update(); /* update display */
|
||||
|
@ -123,6 +123,8 @@ private:
|
||||
|
||||
LogoBar * _rsLogoBarmessenger;
|
||||
|
||||
QFont itemFont;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::MessengerWindow ui;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user