mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Added to hide logo label and logo button, when calling "Create Wiki Group"
switch text for some labels, when "Create Wiki Group" is called. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5844 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ec6aef8d45
commit
6e349749d0
@ -28,7 +28,7 @@
|
||||
#include "gui/WikiPoos/WikiAddDialog.h"
|
||||
#include "gui/WikiPoos/WikiEditDialog.h"
|
||||
|
||||
#include "gui/gxs/WikiGroupDialog.h"
|
||||
#include "gui/gxs/WikiGroupDialog.h"
|
||||
|
||||
#include <retroshare/rswiki.h>
|
||||
|
||||
@ -160,7 +160,8 @@ void WikiDialog::OpenOrShowAddGroupDialog()
|
||||
void WikiDialog::newGroup()
|
||||
{
|
||||
WikiGroupDialog cf(mWikiQueue, this);
|
||||
//cf.newGroup();
|
||||
//cf.newGroup();
|
||||
cf.wikitype();
|
||||
|
||||
cf.exec ();
|
||||
}
|
||||
|
@ -438,4 +438,14 @@ void GxsGroupDialog::setShareList()
|
||||
this->resize(this->size().width() - ui.contactsdockWidget->size().width(), this->size().height());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void GxsGroupDialog::wikitype()
|
||||
{
|
||||
// hide logo Button/Label
|
||||
ui.groupLogo->hide();
|
||||
ui.addLogoButton->hide();
|
||||
|
||||
ui.headerImage->setPixmap(QPixmap(":/images/resource-group-new_48.png")) ;
|
||||
ui.pubKeyShare_cb->setText(tr("Add Wiki Moderators"));
|
||||
ui.contactsdockWidget->setWindowTitle(tr("Select Wiki Moderators"));
|
||||
}
|
||||
|
@ -134,10 +134,11 @@ public:
|
||||
* @param parent
|
||||
*/
|
||||
GxsGroupDialog(const RsGroupMetaData& grpMeta, uint32_t mode = GXS_GROUP_DIALOG_SHOW_MODE, QWidget *parent = NULL);
|
||||
void wikitype();
|
||||
|
||||
private:
|
||||
void newGroup();
|
||||
void setMode(uint32_t mode);
|
||||
void setMode(uint32_t mode);
|
||||
|
||||
// Functions that can be overloaded for specific stuff.
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<widget class="QLabel" name="headerImage">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
@ -61,9 +61,6 @@
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../WikiPoos/Wiki_images.qrc">:/images/resource-group-new_48.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
@ -564,6 +561,8 @@ p, li { white-space: pre-wrap; }
|
||||
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
Loading…
Reference in New Issue
Block a user