Changeset 841aad4
- Timestamp:
- 08/30/17 22:56:31 (5 years ago)
- Branches:
- master
- Children:
- 9dbc426
- Parents:
- 30edeb7
- Location:
- src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/urlinputdialog.cpp
r30edeb7 r841aad4 29 29 30 30 QPushButton* openFile = buttons->addButton("Open File...", QDialogButtonBox::ActionRole); 31 textChanged(urlEntry->text()); 31 32 32 33 connect(openFile, SIGNAL(clicked()), SLOT(openFileClicked())); 33 34 connect(buttons, SIGNAL(accepted()), SLOT(acceptClicked())); 34 35 connect(buttons, SIGNAL(rejected()), SLOT(rejectClicked())); 36 connect(urlEntry, SIGNAL(textChanged(QString)), SLOT(textChanged(QString))); 35 37 } 36 38 … … 47 49 } 48 50 51 void UrlInputDialog::textChanged(const QString& text) 52 { 53 buttons->button(QDialogButtonBox::StandardButton::Open)->setEnabled(!text.isEmpty()); 54 } 55 49 56 void UrlInputDialog::acceptClicked() 50 57 { -
src/gui/urlinputdialog.h
r30edeb7 r841aad4 39 39 void rejectClicked(); 40 40 void openFileClicked(); 41 void textChanged(const QString& text); 41 42 private: 42 43 QString saved_result;
Note: See TracChangeset
for help on using the changeset viewer.