+ fix reported Qt warning
This commit is contained in:
parent
08df5cbc59
commit
df6eb69f56
|
@ -48,12 +48,11 @@ namespace Gui {
|
|||
namespace Dialog {
|
||||
QByteArray toParamEntry(QString name)
|
||||
{
|
||||
QString tmp = QString::fromLatin1(name.toLatin1());
|
||||
name.replace(QString::fromLatin1(" "), QString::fromLatin1("_"));
|
||||
return name.toLatin1();
|
||||
}
|
||||
|
||||
void DlgCheckableMessageBox::showMessage(QString header, QString message, bool check,QString checkText )
|
||||
void DlgCheckableMessageBox::showMessage(const QString& header, const QString& message, bool check, const QString& checkText)
|
||||
{
|
||||
bool checked = App::GetApplication().GetParameterGroupByPath( QByteArray("User parameter:BaseApp/CheckMessages"))->GetBool(toParamEntry(header));
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class GuiExport DlgCheckableMessageBox : public QDialog
|
|||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QPixmap iconPixmap READ iconPixmap WRITE setIconPixmap)
|
||||
Q_PROPERTY(bool isChecked READ isChecked WRITE setChecked)
|
||||
Q_PROPERTY(QString prefEntry WRITE setPrefEntry)
|
||||
//Q_PROPERTY(QString prefEntry WRITE setPrefEntry) // Must have a READ accessor!
|
||||
Q_PROPERTY(QString checkBoxText READ checkBoxText WRITE setCheckBoxText)
|
||||
Q_PROPERTY(QDialogButtonBox::StandardButtons buttons READ standardButtons WRITE setStandardButtons)
|
||||
Q_PROPERTY(QDialogButtonBox::StandardButton defaultButton READ defaultButton WRITE setDefaultButton)
|
||||
|
@ -99,8 +99,8 @@ public:
|
|||
// Conversion convenience
|
||||
static QMessageBox::StandardButton dialogButtonBoxToMessageBoxButton(QDialogButtonBox::StandardButton);
|
||||
|
||||
// conviniant show method
|
||||
static void showMessage(QString haeder, QString message, bool check=false,QString checkText = QString::fromLatin1("Don't show me again"));
|
||||
// convenient show method
|
||||
static void showMessage(const QString& haeder, const QString& message, bool check=false, const QString& checkText = QString::fromLatin1("Don't show me again"));
|
||||
|
||||
private Q_SLOTS:
|
||||
void slotClicked(QAbstractButton *b);
|
||||
|
|
Loading…
Reference in New Issue
Block a user