diff --git a/retroshare-gui/src/gui/ChannelFeed.cpp b/retroshare-gui/src/gui/ChannelFeed.cpp index 1ec23841b..73837dbe2 100644 --- a/retroshare-gui/src/gui/ChannelFeed.cpp +++ b/retroshare-gui/src/gui/ChannelFeed.cpp @@ -57,7 +57,7 @@ ChannelFeed::ChannelFeed(QWidget *parent) /* Invoke the Qt Designer generated object setup routine */ setupUi(this); - connect(actionCreate_Channel, SIGNAL(triggered()), this, SLOT(createChannel())); + connect(newChannelButton, SIGNAL(clicked()), this, SLOT(createChannel())); connect(postButton, SIGNAL(clicked()), this, SLOT(createMsg())); connect(subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeChannel ( void ) ) ); connect(unsubscribeButton, SIGNAL( clicked( void ) ), this, SLOT( unsubscribeChannel ( void ) ) ); @@ -93,12 +93,6 @@ ChannelFeed::ChannelFeed(QWidget *parent) nameLabel->setFont(QFont("MS SANS SERIF", 22)); nameLabel->setMinimumWidth(20); - // Setup Channel Menu: - QMenu *channelmenu = new QMenu(); - channelmenu->addAction(actionCreate_Channel); - channelmenu->addSeparator(); - channelpushButton->setMenu(channelmenu); - /* load settings */ processSettings(true); diff --git a/retroshare-gui/src/gui/ChannelFeed.ui b/retroshare-gui/src/gui/ChannelFeed.ui index 1601a847d..ae31412e6 100644 --- a/retroshare-gui/src/gui/ChannelFeed.ui +++ b/retroshare-gui/src/gui/ChannelFeed.ui @@ -139,88 +139,6 @@ p, li { white-space: pre-wrap; } - - - - true - - - Qt::NoFocus - - - Add - - - QPushButton::menu-indicator { - subcontrol-origin: padding; - subcontrol-position: bottom right; - } - - QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open { - position: relative; - top: 2px; left: 2px; /* shift the arrow by 2 px */ - } - - QPushButton:hover { - border: 1px solid #CCCCCC; - } - - - - - - - :/images/edit_add24.png:/images/edit_add24.png - - - false - - - true - - - - - - - - 0 - 0 - - - - - 0 - 25 - - - - - 16777215 - 26 - - - - Qt::NoFocus - - - Post to Channel - - - - - - - - - - :/images/mail_send.png:/images/mail_send.png - - - true - - - @@ -253,6 +171,26 @@ p, li { white-space: pre-wrap; } + + + + true + + + Qt::NoFocus + + + Create Channel + + + + :/images/add_channel24.png:/images/add_channel24.png + + + true + + + @@ -355,12 +293,12 @@ p, li { white-space: pre-wrap; } - 9 + 2 - 9 + 2 - + @@ -402,7 +340,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; - + @@ -454,7 +392,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; - + Qt::Horizontal @@ -467,7 +405,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; - + @@ -506,7 +444,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; - + @@ -539,6 +477,47 @@ border-image: url(:/images/btn_26_pressed.png) 4; + + + + + 0 + 0 + + + + + 0 + 25 + + + + + 16777215 + 26 + + + + Qt::NoFocus + + + Post to Channel + + + + + + + + + + :/images/mail_send.png:/images/mail_send.png + + + true + + + @@ -575,7 +554,7 @@ border-image: url(:/images/btn_26_pressed.png) 4; 0 0 - 452 + 484 331 @@ -617,15 +596,6 @@ border-image: url(:/images/btn_26_pressed.png) 4; - - - - :/images/add_channel24.png:/images/add_channel24.png - - - Create Channel - - diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index d8aa037ae..ec629626d 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -135,7 +135,7 @@ ForumsDialog::ForumsDialog(QWidget *parent) connect( ui.forumTreeWidget, SIGNAL( treeCustomContextMenuRequested( QPoint ) ), this, SLOT( forumListCustomPopupMenu( QPoint ) ) ); connect( ui.threadTreeWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( threadListCustomPopupMenu( QPoint ) ) ); - connect(ui.actionCreate_Forum, SIGNAL(triggered()), this, SLOT(newforum())); + connect(ui.newForumButton, SIGNAL(clicked()), this, SLOT(newforum())); connect(ui.newmessageButton, SIGNAL(clicked()), this, SLOT(createmessage())); connect(ui.newthreadButton, SIGNAL(clicked()), this, SLOT(createthread())); @@ -181,11 +181,6 @@ ForumsDialog::ForumsDialog(QWidget *parent) ui.forumName->setFont(m_ForumNameFont); ui.threadTitle->setFont(m_ForumNameFont); - QMenu *forummenu = new QMenu(); - forummenu->addAction(ui.actionCreate_Forum); - forummenu->addSeparator(); - ui.forumpushButton->setMenu(forummenu); - /* Initialize group tree */ ui.forumTreeWidget->initDisplayMenu(ui.displayButton); diff --git a/retroshare-gui/src/gui/ForumsDialog.ui b/retroshare-gui/src/gui/ForumsDialog.ui index dc9e23929..0637b97b0 100644 --- a/retroshare-gui/src/gui/ForumsDialog.ui +++ b/retroshare-gui/src/gui/ForumsDialog.ui @@ -617,70 +617,6 @@ p, li { white-space: pre-wrap; } - - - - Qt::NoFocus - - - Add - - - QPushButton::menu-indicator { - subcontrol-origin: padding; - subcontrol-position: bottom right; - } - - QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open { - position: relative; - top: 2px; left: 2px; /* shift the arrow by 2 px */ - } - - QPushButton:hover { - border: 1px solid #CCCCCC; - } - - - - - - - :/images/edit_add24.png:/images/edit_add24.png - - - false - - - true - - - - - - - - 24 - 24 - - - - Qt::NoFocus - - - Start new Thread for Selected Forum - - - - - - - :/images/mail_new.png:/images/mail_new.png - - - true - - - @@ -713,6 +649,23 @@ p, li { white-space: pre-wrap; } + + + + Qt::NoFocus + + + Create Forum + + + + :/images/new_forum16.png:/images/new_forum16.png + + + true + + + @@ -1067,7 +1020,7 @@ border: 1px solid #CCCCCC;} 2 - + 2 @@ -1140,7 +1093,7 @@ border-image: url(:/images/closepressed.png) - + @@ -1178,7 +1131,7 @@ border-image: url(:/images/closepressed.png) - + @@ -1192,9 +1145,6 @@ border-image: url(:/images/closepressed.png) Reply Message - - - :/images/mail_reply.png:/images/mail_reply.png @@ -1204,7 +1154,7 @@ border-image: url(:/images/closepressed.png) - + Qt::Horizontal @@ -1220,6 +1170,29 @@ border-image: url(:/images/closepressed.png) + + + + + 24 + 24 + + + + Qt::NoFocus + + + Start new Thread for Selected Forum + + + + :/images/mail_new.png:/images/mail_new.png + + + true + + + @@ -1258,15 +1231,6 @@ border-image: url(:/images/closepressed.png) PrintPreview - - - - :/images/new_forum16.png:/images/new_forum16.png - - - Create Forum - -