mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-01 04:46:47 -05:00
Removed context help button from the dialogs (currently not used) and added minimize/maximize buttons to the "floating" dialogs.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5786 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
07d8db4505
commit
9b5ee85fd0
42 changed files with 86 additions and 189 deletions
|
|
@ -18,23 +18,14 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
#include "StatusMessage.h"
|
||||
|
||||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsmsgs.h>
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
|
||||
|
||||
#include <QTime>
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
|
||||
/** Default constructor */
|
||||
StatusMessage::StatusMessage(QWidget *parent, Qt::WFlags flags)
|
||||
: QDialog(parent, flags)
|
||||
StatusMessage::StatusMessage(QWidget *parent)
|
||||
: QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
|
||||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
|
@ -42,13 +33,7 @@ StatusMessage::StatusMessage(QWidget *parent, Qt::WFlags flags)
|
|||
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(save()));
|
||||
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(close()));
|
||||
|
||||
load();
|
||||
|
||||
}
|
||||
|
||||
/** Destructor. */
|
||||
StatusMessage::~StatusMessage()
|
||||
{
|
||||
ui.txt_StatusMessage->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
}
|
||||
|
||||
/** Saves the changes on this page */
|
||||
|
|
@ -56,14 +41,5 @@ void StatusMessage::save()
|
|||
{
|
||||
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toUtf8().constData());
|
||||
|
||||
close();
|
||||
accept();
|
||||
}
|
||||
|
||||
/** Loads the settings for this page */
|
||||
void StatusMessage::load()
|
||||
{
|
||||
ui.txt_StatusMessage->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue