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:
thunder2 2010-11-17 12:45:46 +00:00
parent 7f8f8c8f31
commit 2c9462e446
2 changed files with 11 additions and 0 deletions

View File

@ -232,6 +232,10 @@ PopupChatDialog::PopupChatDialog(const std::string &id, const QString &name, QWi
// call once
onPrivateChatChanged(NOTIFY_LIST_PRIVATE_OUTGOING_CHAT, NOTIFY_TYPE_ADD, true);
#ifdef RS_RELEASE_VERSION
ui.attachPictureButton->setVisible(false);
#endif
}
/** Destructor. */

View File

@ -286,6 +286,11 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WFlags flags)
setAcceptDrops(true);
#ifdef RS_RELEASE_VERSION
ui.imagebtn->setVisible(false);
ui.imagebtn->setVisible(false);
#endif
/* Hide platform specific features */
#ifdef Q_WS_WIN
@ -1562,9 +1567,11 @@ void MessageComposer::setupInsertActions()
QAction *a;
#ifndef RS_RELEASE_VERSION
a = new QAction(QIcon(""), tr("&Image"), this);
connect(a, SIGNAL(triggered()), this, SLOT(addImage()));
menu->addAction(a);
#endif
a = new QAction(QIcon(""), tr("&Horizontal Line"), this);
connect(a, SIGNAL(triggered()), this, SLOT(addPostSplitter()));