[rkward-cvs] SF.net SVN: rkward:[2720] trunk/rkward/rkward/dialogs
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Tue Dec 1 10:26:49 UTC 2009
Revision: 2720
http://rkward.svn.sourceforge.net/rkward/?rev=2720&view=rev
Author: tfry
Date: 2009-12-01 10:26:49 +0000 (Tue, 01 Dec 2009)
Log Message:
-----------
Partial fix for readline()-dialog geometry issues.
Now, the dialog is no longer growing, but it moves around on screen. However, that moving is definitely a Qt or kwin issue.
Modified Paths:
--------------
trunk/rkward/rkward/dialogs/rkreadlinedialog.cpp
trunk/rkward/rkward/dialogs/rkreadlinedialog.h
Modified: trunk/rkward/rkward/dialogs/rkreadlinedialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/rkreadlinedialog.cpp 2009-11-30 20:59:34 UTC (rev 2719)
+++ trunk/rkward/rkward/dialogs/rkreadlinedialog.cpp 2009-12-01 10:26:49 UTC (rev 2720)
@@ -33,7 +33,7 @@
#include "../debug.h"
-QRect RKReadLineDialog::stored_geom;
+QByteArray RKReadLineDialog::stored_geom;
RKReadLineDialog::RKReadLineDialog (QWidget *parent, const QString &caption, const QString &prompt, RCommand *command) : KDialog (parent) {
RK_TRACE (DIALOGS);
@@ -87,11 +87,11 @@
RK_ASSERT (result);
RKReadLineDialog *dialog = new RKReadLineDialog (parent, caption, prompt, command);
- if (!stored_geom.isNull ()) dialog->setGeometry (stored_geom);
+ if (!stored_geom.isNull ()) dialog->restoreGeometry (stored_geom);
QTimer::singleShot (0, dialog->input, SLOT(setFocus()));
int res = dialog->exec ();
*result = dialog->input->text ();
- stored_geom = dialog->frameGeometry ();
+ stored_geom = dialog->saveGeometry ();
delete dialog;
return (res != QDialog::Rejected);
Modified: trunk/rkward/rkward/dialogs/rkreadlinedialog.h
===================================================================
--- trunk/rkward/rkward/dialogs/rkreadlinedialog.h 2009-11-30 20:59:34 UTC (rev 2719)
+++ trunk/rkward/rkward/dialogs/rkreadlinedialog.h 2009-12-01 10:26:49 UTC (rev 2720)
@@ -2,7 +2,7 @@
rkreadlinedialog - description
-------------------
begin : Fri Sep 15 2006
- copyright : (C) 2006, 2007 by Thomas Friedrichsmeier
+ copyright : (C) 2006, 2007, 2009 by Thomas Friedrichsmeier
email : tfry at users.sourceforge.net
***************************************************************************/
@@ -45,7 +45,7 @@
~RKReadLineDialog ();
private:
QLineEdit *input;
- static QRect stored_geom;
+ static QByteArray stored_geom;
};
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list