On Wed, 21 Mar 2012, Oliver Eichler wrote:
did you miss this?
Oh, sorry, no. I didn't miss it but I forgot to answer. Now the line edit is
disabled all the time. You have to control it according to the radio boxes.
Interestingly it did work here with Qt 4.7.4 on OS X, oh well... :-/
Next patch attached.
Michael
On Fri, 16 Mar 2012, Michael Klein wrote:
On Fri, 16 Mar 2012, Oliver Eichler wrote:
Ok, it's in CDlgConvertToTrack now.
I couldn't make the dialog resize properly without jumping and/or
flickering when the line edit is shown or hidden. So for now, the line
edit is always shown, but only enabled if the radio button is selected.
That's fine. I committed the patch. There is just a minor quirk left.
If your
last selection was not geonames and you open the dialog the edit box is
enabled.
This should fix it:
diff --git a/src/IDlgConvertToTrack.ui b/src/IDlgConvertToTrack.ui
index 443530f..7b4ca44 100644
--- a/src/IDlgConvertToTrack.ui
+++ b/src/IDlgConvertToTrack.ui
@@ -62,6 +62,9 @@
</item>
<item>
<widget class="QWidget" name="widgetGeonamesOrgUsername" native="true">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<layout class="QHBoxLayout" name="boxGeonamesOrgUsername">
<property name="topMargin">
<number>0</number>
Michael
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
From 5fca7ca2eba153e89ffc33a34b3199bbe1de1245 Mon Sep 17 00:00:00 2001
From: Michael Klein <[email protected]>
Date: Thu, 22 Mar 2012 20:36:53 +0100
Subject: [PATCH] CDlgConvertToTrack: enable/disable username textfield fix
---
src/CDlgConvertToTrack.cpp | 5 +++++
src/CDlgConvertToTrack.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/CDlgConvertToTrack.cpp b/src/CDlgConvertToTrack.cpp
index 9982801..f9c0661 100644
--- a/src/CDlgConvertToTrack.cpp
+++ b/src/CDlgConvertToTrack.cpp
@@ -48,6 +48,11 @@ CDlgConvertToTrack::CDlgConvertToTrack(QWidget * parent)
editGeonamesOrgUsername->setText(cfg.value("geonames/username",
"demo").toString());
}
+int CDlgConvertToTrack::exec()
+{
+ widgetGeonamesOrgUsername->setEnabled(radioEleFromRemote->isChecked());
+ return QDialog::exec();
+}
void CDlgConvertToTrack::accept()
{
diff --git a/src/CDlgConvertToTrack.h b/src/CDlgConvertToTrack.h
index fd5eecb..76c079a 100644
--- a/src/CDlgConvertToTrack.h
+++ b/src/CDlgConvertToTrack.h
@@ -36,5 +36,6 @@ class CDlgConvertToTrack : public QDialog, private
Ui::IDlgConvertToTrack
public slots:
void accept();
+ int exec();
};
#endif //CDLGCONVERTTOTRACK_H
--
1.7.9.4
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users