Preselect name without extension when renaming files

And preselect the whole string for everything else.
This commit is contained in:
thalieht
2018-09-05 16:55:21 +03:00
parent 9fa78c7b50
commit ffc2193df9
4 changed files with 20 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ public:
static QString getText(QWidget *parent, const QString &title, const QString &label,
QLineEdit::EchoMode mode = QLineEdit::Normal, const QString &text = QString(),
bool *ok = nullptr, Qt::InputMethodHints inputMethodHints = Qt::ImhNone);
bool *ok = nullptr, bool excludeExtension = false, Qt::InputMethodHints inputMethodHints = Qt::ImhNone);
protected:
void showEvent(QShowEvent *e) override;