[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/network/telepathy-accounts-kcm/src/KCMTelepathyAccounts
From: George Goldberg <grundleborg () googlemail ! com>
Date: 2009-08-11 11:06:11
Message-ID: 1249988771.482860.32183.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1009980 by gberg:
Uncomment line giving widgets focus in the ParameterItemDelegate after they have been \
set up (because otherwise widgets were still getting the wrong values in them).
M +4 -4 parameter-edit-delegate.cpp
--- trunk/playground/network/telepathy-accounts-kcm/src/KCMTelepathyAccounts/parameter-edit-delegate.cpp \
#1009979:1009980 @@ -98,7 +98,7 @@
// Bool type. Draw a checkbox.
checkBox->move((right / 2) + margin, (option.rect.height() - \
checkBox->size().height()) / 2);
- // checkBox->setFocus(Qt::OtherFocusReason);
+ checkBox->setFocus(Qt::OtherFocusReason);
// NB: We must update the value of the widget AFTER setting it as focused, \
otherwise
// focusedItem() returns the wrong value and we end up setting the data of \
the wrong item // in the model.
@@ -118,7 +118,7 @@
// Save the cursor position within the widget so we can restore it after \
altering the data int cursorPosition = integerEdit->cursorPosition();
- // integerEdit->setFocus(Qt::OtherFocusReason);
+ integerEdit->setFocus(Qt::OtherFocusReason);
// NB: We must update the value of the widget AFTER setting it as focused, \
otherwise
// focusedItem() returns the wrong value and we end up setting the data of \
the wrong item // in the model.
@@ -143,7 +143,7 @@
// Save the cursor position within the widget so we can restore it after \
altering the data int cursorPosition = unsignedIntegerEdit->cursorPosition();
- // integerEdit->setFocus(Qt::OtherFocusReason);
+ integerEdit->setFocus(Qt::OtherFocusReason);
// NB: We must update the value of the widget AFTER setting it as focused, \
otherwise
// focusedItem() returns the wrong value and we end up setting the data of \
the wrong item // in the model.
@@ -172,7 +172,7 @@
// Save the cursor position within the widget so we can restore it after \
altering the data int cursorPosition = lineEdit->cursorPosition();
- // lineEdit->setFocus(Qt::OtherFocusReason);
+ lineEdit->setFocus(Qt::OtherFocusReason);
// NB: We must update the value of the widget AFTER setting it as focused, \
otherwise
// focusedItem() returns the wrong value and we end up setting the data of \
the wrong item // in the model.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic