mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -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/WikiAddDialog.h"
|
||||||
#include "gui/WikiPoos/WikiEditDialog.h"
|
#include "gui/WikiPoos/WikiEditDialog.h"
|
||||||
|
|
||||||
#include "gui/gxs/WikiGroupDialog.h"
|
#include "gui/gxs/WikiGroupDialog.h"
|
||||||
|
|
||||||
#include <retroshare/rswiki.h>
|
#include <retroshare/rswiki.h>
|
||||||
|
|
||||||
@ -160,7 +160,8 @@ void WikiDialog::OpenOrShowAddGroupDialog()
|
|||||||
void WikiDialog::newGroup()
|
void WikiDialog::newGroup()
|
||||||
{
|
{
|
||||||
WikiGroupDialog cf(mWikiQueue, this);
|
WikiGroupDialog cf(mWikiQueue, this);
|
||||||
//cf.newGroup();
|
//cf.newGroup();
|
||||||
|
cf.wikitype();
|
||||||
|
|
||||||
cf.exec ();
|
cf.exec ();
|
||||||
}
|
}
|
||||||
|
@ -438,4 +438,14 @@ void GxsGroupDialog::setShareList()
|
|||||||
this->resize(this->size().width() - ui.contactsdockWidget->size().width(), this->size().height());
|
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
|
* @param parent
|
||||||
*/
|
*/
|
||||||
GxsGroupDialog(const RsGroupMetaData& grpMeta, uint32_t mode = GXS_GROUP_DIALOG_SHOW_MODE, QWidget *parent = NULL);
|
GxsGroupDialog(const RsGroupMetaData& grpMeta, uint32_t mode = GXS_GROUP_DIALOG_SHOW_MODE, QWidget *parent = NULL);
|
||||||
|
void wikitype();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void newGroup();
|
void newGroup();
|
||||||
void setMode(uint32_t mode);
|
void setMode(uint32_t mode);
|
||||||
|
|
||||||
// Functions that can be overloaded for specific stuff.
|
// Functions that can be overloaded for specific stuff.
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="headerImage">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>48</width>
|
<width>48</width>
|
||||||
@ -61,9 +61,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../WikiPoos/Wiki_images.qrc">:/images/resource-group-new_48.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<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"/>
|
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||||
|
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||||
|
<include location="../WikiPoos/Wiki_images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
Reference in New Issue
Block a user