GUI: icons on tracing condition dialogs
This commit is contained in:
parent
9a4d4547f7
commit
e6c3607314
|
|
@ -754,7 +754,7 @@ void MainWindow::execTicnd()
|
|||
if(!DbgIsDebugging())
|
||||
return;
|
||||
QString text;
|
||||
if(SimpleInputBox(this, tr("Enter trace into finishing condition."), "", text, tr("Example: eax == 0 && ebx == 0")))
|
||||
if(SimpleInputBox(this, tr("Enter trace into finishing condition."), "", text, tr("Example: eax == 0 && ebx == 0"), &DIcon("traceinto.png")))
|
||||
DbgCmdExec(QString("ticnd \"%1\"").arg(text).toUtf8().constData());
|
||||
}
|
||||
|
||||
|
|
@ -763,7 +763,7 @@ void MainWindow::execTocnd()
|
|||
if(!DbgIsDebugging())
|
||||
return;
|
||||
QString text;
|
||||
if(SimpleInputBox(this, tr("Enter trace over finishing condition."), "", text, tr("Example: eax == 0 && ebx == 0")))
|
||||
if(SimpleInputBox(this, tr("Enter trace over finishing condition."), "", text, tr("Example: eax == 0 && ebx == 0"), &DIcon("traceover.png")))
|
||||
DbgCmdExec(QString("tocnd \"%1\"").arg(text).toUtf8().constData());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ QByteArray & ByteReverse(QByteArray & array)
|
|||
return array;
|
||||
}
|
||||
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText)
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText, QIcon* icon)
|
||||
{
|
||||
LineEditDialog mEdit(parent);
|
||||
mEdit.setWindowIcon(parent->windowIcon());
|
||||
mEdit.setWindowIcon(icon ? *icon : parent->windowIcon());
|
||||
mEdit.setText(defaultValue);
|
||||
mEdit.setPlaceholderText(placeholderText);
|
||||
mEdit.setWindowTitle(title);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class QByteArray;
|
|||
|
||||
void SetApplicationIcon(WId winId);
|
||||
QByteArray & ByteReverse(QByteArray & array);
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText);
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText, QIcon* icon = nullptr);
|
||||
void SimpleErrorBox(QWidget* parent, const QString & title, const QString & text);
|
||||
void SimpleWarningBox(QWidget* parent, const QString & title, const QString & text);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue