mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 15:09:33 -05:00
moved the "new topic" button to the groupTreeWidget
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6670 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0416a0d888
commit
f143ff3525
@ -75,6 +75,13 @@ PostedListDialog::PostedListDialog(QWidget *parent)
|
||||
mLastSortMethod = RsPosted::TopRankType; // to be different.
|
||||
mPostIndex = 0;
|
||||
mPostShow = POSTED_DEFAULT_LISTING_LENGTH;
|
||||
|
||||
/* Initialize group tree */
|
||||
QToolButton *newTopicButton = new QToolButton(this);
|
||||
newTopicButton->setIcon(QIcon(":/images/posted_add_24.png"));
|
||||
newTopicButton->setToolTip(tr("Create New Topic"));
|
||||
connect(newTopicButton, SIGNAL(clicked()), this, SLOT(newTopic()));
|
||||
ui.groupTreeWidget->addToolButton(newTopicButton);
|
||||
|
||||
/* create posted tree */
|
||||
yourTopics = ui.groupTreeWidget->addCategoryItem(tr("My Topics"), QIcon(IMAGE_FOLDER), true);
|
||||
@ -84,7 +91,6 @@ PostedListDialog::PostedListDialog(QWidget *parent)
|
||||
|
||||
ui.hotSortButton->setChecked(true);
|
||||
|
||||
connect(ui.newTopicButton, SIGNAL(clicked()), this, SLOT(newTopic()));
|
||||
connect(ui.submitPostButton, SIGNAL(clicked()), this, SLOT(newPost()));
|
||||
}
|
||||
|
||||
|
@ -24,31 +24,7 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>36</width>
|
||||
<height>21</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2">
|
||||
<widget class="QPushButton" name="newTopicButton">
|
||||
<property name="text">
|
||||
<string>New Topic</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="Posted_images.qrc">
|
||||
<normaloff>:/images/posted_add_32.png</normaloff>:/images/posted_add_32.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="GroupTreeWidget" name="groupTreeWidget" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
|
@ -5,6 +5,7 @@
|
||||
<file>images/posted_32.png</file>
|
||||
<file>images/posted_48.png</file>
|
||||
<file>images/posted_64.png</file>
|
||||
<file>images/posted_add_24.png</file>
|
||||
<file>images/posted_add_32.png</file>
|
||||
<file>images/posted_add_64.png</file>
|
||||
<file>images/hot_24.png</file>
|
||||
|
BIN
retroshare-gui/src/gui/Posted/images/posted_add_24.png
Normal file
BIN
retroshare-gui/src/gui/Posted/images/posted_add_24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue
Block a user