summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kvoctrain/kvoctrain/kvoctraintableitem.cpp2
-rw-r--r--kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/kvoctrain/kvoctrain/kvoctraintableitem.cpp b/kvoctrain/kvoctrain/kvoctraintableitem.cpp
index f4aefca8..80a2dd53 100644
--- a/kvoctrain/kvoctrain/kvoctraintableitem.cpp
+++ b/kvoctrain/kvoctrain/kvoctraintableitem.cpp
@@ -106,7 +106,7 @@ TQWidget *KVocTrainTableItem::createEditor() const
void KVocTrainTableItem::setContentFromEditor( TQWidget *w )
{
if (m_doc != 0) {
- if ( w->inherits( "TQComboBox" ) ) {
+ if ( w->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) {
if (col() == KV_COL_MARK) {
TQComboBox *statebox = (TQComboBox*) w;
kvoctrainExpr *expr = m_doc->getEntry(row());
diff --git a/kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp b/kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp
index 8f1e315f..2e2a857b 100644
--- a/kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp
+++ b/kvoctrain/kvoctrain/query-dialogs/RandomQueryDlg.cpp
@@ -486,7 +486,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
{
mw->verify->setDefault(true);
bool suggestions = Prefs::suggestions();
- if ( suggestions && sender() && sender() -> isA ("TQComboBox") )
+ if ( suggestions && sender() && sender() -> isA (TQCOMBOBOX_OBJECT_NAME_STRING) )
{
TQLineEdit* edit = ((TQComboBox*) sender()) -> lineEdit();
resetField (edit);
@@ -497,7 +497,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
else
mw->status -> clear();
}
- else if ( ! suggestions && sender() && sender() -> isA ("TQLineEdit") )
+ else if ( ! suggestions && sender() && sender() -> isA (TQLINEEDIT_OBJECT_NAME_STRING) )
resetField ((TQLineEdit*) sender());
}