mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-21 23:40:26 -04:00
Disabled image support in MessageComposer and PopupChatDialog for the release version.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3807 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7f8f8c8f31
commit
2c9462e446
2 changed files with 11 additions and 0 deletions
|
@ -232,6 +232,10 @@ PopupChatDialog::PopupChatDialog(const std::string &id, const QString &name, QWi
|
||||||
|
|
||||||
// call once
|
// call once
|
||||||
onPrivateChatChanged(NOTIFY_LIST_PRIVATE_OUTGOING_CHAT, NOTIFY_TYPE_ADD, true);
|
onPrivateChatChanged(NOTIFY_LIST_PRIVATE_OUTGOING_CHAT, NOTIFY_TYPE_ADD, true);
|
||||||
|
|
||||||
|
#ifdef RS_RELEASE_VERSION
|
||||||
|
ui.attachPictureButton->setVisible(false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destructor. */
|
/** Destructor. */
|
||||||
|
|
|
@ -286,6 +286,11 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WFlags flags)
|
||||||
|
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
#ifdef RS_RELEASE_VERSION
|
||||||
|
ui.imagebtn->setVisible(false);
|
||||||
|
ui.imagebtn->setVisible(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Hide platform specific features */
|
/* Hide platform specific features */
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
|
|
||||||
|
@ -1562,9 +1567,11 @@ void MessageComposer::setupInsertActions()
|
||||||
|
|
||||||
QAction *a;
|
QAction *a;
|
||||||
|
|
||||||
|
#ifndef RS_RELEASE_VERSION
|
||||||
a = new QAction(QIcon(""), tr("&Image"), this);
|
a = new QAction(QIcon(""), tr("&Image"), this);
|
||||||
connect(a, SIGNAL(triggered()), this, SLOT(addImage()));
|
connect(a, SIGNAL(triggered()), this, SLOT(addImage()));
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
#endif
|
||||||
|
|
||||||
a = new QAction(QIcon(""), tr("&Horizontal Line"), this);
|
a = new QAction(QIcon(""), tr("&Horizontal Line"), this);
|
||||||
connect(a, SIGNAL(triggered()), this, SLOT(addPostSplitter()));
|
connect(a, SIGNAL(triggered()), this, SLOT(addPostSplitter()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue