diff options
Diffstat (limited to 'kexi/widget/tableview')
-rw-r--r-- | kexi/widget/tableview/kexicomboboxtableedit.cpp | 2 | ||||
-rw-r--r-- | kexi/widget/tableview/kexitableview.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kexi/widget/tableview/kexicomboboxtableedit.cpp b/kexi/widget/tableview/kexicomboboxtableedit.cpp index 3c08b265..9eecc498 100644 --- a/kexi/widget/tableview/kexicomboboxtableedit.cpp +++ b/kexi/widget/tableview/kexicomboboxtableedit.cpp @@ -70,7 +70,7 @@ KexiComboBoxTableEdit::KexiComboBoxTableEdit(KexiTableViewColumn &column, TQWidg m_setVisibleValueOnSetValueInternal = true; d->button = new KexiComboBoxDropDownButton( parentWidget() /*usually a viewport*/ ); d->button->hide(); - d->button->setFocusPolicy( TQ_NoFocus ); + d->button->setFocusPolicy( TQWidget::NoFocus ); connect(d->button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotButtonClicked())); connect(m_lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotLineEditTextChanged(const TQString&))); diff --git a/kexi/widget/tableview/kexitableview.cpp b/kexi/widget/tableview/kexitableview.cpp index ab76fa95..39e397ea 100644 --- a/kexi/widget/tableview/kexitableview.cpp +++ b/kexi/widget/tableview/kexitableview.cpp @@ -192,9 +192,9 @@ KexiTableView::KexiTableView(KexiTableViewData* data, TQWidget* parent, const ch setResizePolicy(Manual); viewport()->setBackgroundMode(TQt::NoBackground); -// viewport()->setFocusPolicy(TQ_StrongFocus); - viewport()->setFocusPolicy(TQ_WheelFocus); - setFocusPolicy(TQ_WheelFocus); //<--- !!!!! important (was NoFocus), +// viewport()->setFocusPolicy(TQWidget::StrongFocus); + viewport()->setFocusPolicy(TQWidget::WheelFocus); + setFocusPolicy(TQWidget::WheelFocus); //<--- !!!!! important (was NoFocus), // otherwise TQApplication::setActiveWindow() won't activate // this widget when needed! // setFocusProxy(viewport()); |