Commit 6fe6bed6 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

SnapshotDialog usability fix.

Make "Change Resolution" button invisible (instead of just disabling it) if it
is not applicable.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20954 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3c90db21
......@@ -60,7 +60,8 @@ SnapshotDialog::SnapshotDialog(QString _suggest, bool _captureViewers, int _w, i
// Disable 'change resolution' button if
// in viewer snapshot mode
multisampling->setChecked(captureViewers_);
resButton->setDisabled(captureViewers_);
changeRes_wdgt->setVisible(!captureViewers_);
changeRes_pb->setEnabled(!captureViewers_);
transparent->setDisabled(!captureViewers_);
hideCoordsys->setDisabled(!captureViewers_);
multisampling->setDisabled(!captureViewers_);
......@@ -81,7 +82,7 @@ SnapshotDialog::SnapshotDialog(QString _suggest, bool _captureViewers, int _w, i
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()) );
connect(findButton, SIGNAL(clicked()), this, SLOT(findFile()) );
connect(resButton, SIGNAL(clicked()), this, SLOT(slotChangeResolution()) );
connect(changeRes_pb, SIGNAL(clicked()), this, SLOT(slotChangeResolution()) );
connect(okButton, SIGNAL(clicked()), this, SLOT(slotOk()) );
connect(filename, SIGNAL(textChanged(const QString &)), this, SLOT(filenameChanged(const QString &)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment