Adding statustip on button in configurationWidget and save button also save in memory
This commit is contained in:
parent
4b62ea91d2
commit
4dddfbba98
|
@ -78,17 +78,20 @@ namespace Cfg {
|
||||||
hLayout->addStretch ();
|
hLayout->addStretch ();
|
||||||
|
|
||||||
_apply->setText ( tr( (_flags&Embedded)?"Apply":"OK") );
|
_apply->setText ( tr( (_flags&Embedded)?"Apply":"OK") );
|
||||||
|
_apply->setStatusTip(tr("apply changes in memory"));
|
||||||
hLayout->addWidget ( _apply );
|
hLayout->addWidget ( _apply );
|
||||||
hLayout->addStretch ();
|
hLayout->addStretch ();
|
||||||
|
|
||||||
if ( _flags & StandAlone ) {
|
if ( _flags & StandAlone ) {
|
||||||
_save = new QPushButton ();
|
_save = new QPushButton ();
|
||||||
_save->setText ( tr("Save") );
|
_save->setText ( tr("Save") );
|
||||||
|
_save->setStatusTip(tr("save changes to file"));
|
||||||
hLayout->addWidget ( _save );
|
hLayout->addWidget ( _save );
|
||||||
hLayout->addStretch ();
|
hLayout->addStretch ();
|
||||||
|
|
||||||
_cancel = new QPushButton ();
|
_cancel = new QPushButton ();
|
||||||
_cancel->setText ( tr("Cancel") );
|
_cancel->setText ( tr("Cancel") );
|
||||||
|
_cancel->setStatusTip(tr("cancel changes"));
|
||||||
hLayout->addWidget ( _cancel );
|
hLayout->addWidget ( _cancel );
|
||||||
hLayout->addStretch ();
|
hLayout->addStretch ();
|
||||||
}
|
}
|
||||||
|
@ -165,6 +168,8 @@ namespace Cfg {
|
||||||
_tabWidget->addTab ( tab, tabName.c_str() );
|
_tabWidget->addTab ( tab, tabName.c_str() );
|
||||||
|
|
||||||
connect ( this, SIGNAL(updateParameters()), tab, SIGNAL(updateParameters()) );
|
connect ( this, SIGNAL(updateParameters()), tab, SIGNAL(updateParameters()) );
|
||||||
|
if (_save)
|
||||||
|
connect ( _save , SIGNAL(clicked()), tab, SIGNAL(updateParameters()) );
|
||||||
|
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#define __CFG_CONFIGURATION_DIALOG__
|
#define __CFG_CONFIGURATION_DIALOG__
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
class QPushButton;
|
||||||
|
|
||||||
namespace Cfg {
|
namespace Cfg {
|
||||||
class ConfigurationDialog : public QDialog {
|
class ConfigurationDialog : public QDialog {
|
||||||
|
|
Loading…
Reference in New Issue