summaryrefslogtreecommitdiffstats
path: root/kdecore/kconfigdialogmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-21 02:36:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-21 02:36:48 +0000
commit2b5e80f73636f80085572ae51cb04d67ea59b3b9 (patch)
tree7dc6f3b32ae79c0eca18545ea1f11129d7a4c405 /kdecore/kconfigdialogmanager.cpp
parente88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184 (diff)
downloadtdelibs-2b5e80f73636f80085572ae51cb04d67ea59b3b9.tar.gz
tdelibs-2b5e80f73636f80085572ae51cb04d67ea59b3b9.zip
Fixed kcfg_ widgets not emitting signals
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1166131 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kconfigdialogmanager.cpp')
-rw-r--r--kdecore/kconfigdialogmanager.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdecore/kconfigdialogmanager.cpp b/kdecore/kconfigdialogmanager.cpp
index 7e549e0b0..411ed2a90 100644
--- a/kdecore/kconfigdialogmanager.cpp
+++ b/kdecore/kconfigdialogmanager.cpp
@@ -69,29 +69,29 @@ void KConfigDialogManager::init(bool trackChanges)
if(trackChanges)
{
// QT
- changedMap.insert("TQButton", TQT_SIGNAL(stateChanged(int)));
- changedMap.insert("TQCheckBox", TQT_SIGNAL(stateChanged(int)));
- changedMap.insert("TQPushButton", TQT_SIGNAL(stateChanged(int)));
- changedMap.insert("TQRadioButton", TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert("QButton", TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert("QCheckBox", TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert("QPushButton", TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert("QRadioButton", TQT_SIGNAL(stateChanged(int)));
// We can only store one thing, so you can't have
// a ButtonGroup that is checkable.
- changedMap.insert("TQButtonGroup", TQT_SIGNAL(clicked(int)));
- changedMap.insert("TQGroupBox", TQT_SIGNAL(toggled(bool)));
- changedMap.insert("TQComboBox", TQT_SIGNAL(activated (int)));
+ changedMap.insert("QButtonGroup", TQT_SIGNAL(clicked(int)));
+ changedMap.insert("QGroupBox", TQT_SIGNAL(toggled(bool)));
+ changedMap.insert("QComboBox", TQT_SIGNAL(activated (int)));
//qsqlproperty map doesn't store the text, but the value!
- //changedMap.insert("TQComboBox", TQT_SIGNAL(textChanged(const TQString &)));
+ //changedMap.insert("QComboBox", TQT_SIGNAL(textChanged(const TQString &)));
changedMap.insert("QDateEdit", TQT_SIGNAL(valueChanged(const TQDate &)));
changedMap.insert("QDateTimeEdit", TQT_SIGNAL(valueChanged(const TQDateTime &)));
- changedMap.insert("TQDial", TQT_SIGNAL(valueChanged (int)));
- changedMap.insert("TQLineEdit", TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert("TQSlider", TQT_SIGNAL(valueChanged(int)));
- changedMap.insert("TQSpinBox", TQT_SIGNAL(valueChanged(int)));
+ changedMap.insert("QDial", TQT_SIGNAL(valueChanged (int)));
+ changedMap.insert("QLineEdit", TQT_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert("QSlider", TQT_SIGNAL(valueChanged(int)));
+ changedMap.insert("QSpinBox", TQT_SIGNAL(valueChanged(int)));
changedMap.insert("QTimeEdit", TQT_SIGNAL(valueChanged(const TQTime &)));
- changedMap.insert("TQTextEdit", TQT_SIGNAL(textChanged()));
- changedMap.insert("TQTextBrowser", TQT_SIGNAL(sourceChanged(const TQString &)));
- changedMap.insert("TQMultiLineEdit", TQT_SIGNAL(textChanged()));
- changedMap.insert("TQListBox", TQT_SIGNAL(selectionChanged()));
- changedMap.insert("TQTabWidget", TQT_SIGNAL(currentChanged(TQWidget *)));
+ changedMap.insert("QTextEdit", TQT_SIGNAL(textChanged()));
+ changedMap.insert("QTextBrowser", TQT_SIGNAL(sourceChanged(const TQString &)));
+ changedMap.insert("QMultiLineEdit", TQT_SIGNAL(textChanged()));
+ changedMap.insert("QListBox", TQT_SIGNAL(selectionChanged()));
+ changedMap.insert("QTabWidget", TQT_SIGNAL(currentChanged(TQWidget *)));
// KDE
changedMap.insert( "KComboBox", TQT_SIGNAL(activated (int)));
@@ -219,7 +219,7 @@ bool KConfigDialogManager::parseChildren(const TQWidget *widget, bool trackChang
assert(false);
}
}
- else if (childWidget->inherits("TQLabel"))
+ else if (childWidget->inherits("QLabel"))
{
TQLabel *label = static_cast<TQLabel *>(childWidget);
TQWidget *buddy = label->buddy();
@@ -239,8 +239,8 @@ bool KConfigDialogManager::parseChildren(const TQWidget *widget, bool trackChang
TQMap<TQString, TQCString>::const_iterator changedIt = changedMap.find(childWidget->className());
if (changedIt != changedMap.end())
{
- if ((!d->insideGroupBox || !childWidget->inherits("TQRadioButton")) &&
- !childWidget->inherits("TQGroupBox"))
+ if ((!d->insideGroupBox || !childWidget->inherits("QRadioButton")) &&
+ !childWidget->inherits("QGroupBox"))
kdDebug(178) << "Widget '" << widgetName << "' (" << childWidget->className() << ") remains unmanaged." << endl;
}
}