summaryrefslogtreecommitdiffstats
path: root/kexi/widget
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget')
-rw-r--r--kexi/widget/kexipropertyeditorview.cpp2
-rw-r--r--kexi/widget/kexiscrollview.cpp2
-rw-r--r--kexi/widget/kexisectionheader.cpp4
-rw-r--r--kexi/widget/pixmapcollection.cpp4
-rw-r--r--kexi/widget/relations/kexirelationview.cpp2
-rw-r--r--kexi/widget/tableview/kexicomboboxtableedit.cpp2
-rw-r--r--kexi/widget/tableview/kexitableview.cpp6
-rw-r--r--kexi/widget/utils/kexirecordnavigator.cpp16
-rw-r--r--kexi/widget/utils/kexitooltip.cpp2
9 files changed, 20 insertions, 20 deletions
diff --git a/kexi/widget/kexipropertyeditorview.cpp b/kexi/widget/kexipropertyeditorview.cpp
index 1612871b..6af497d1 100644
--- a/kexi/widget/kexipropertyeditorview.cpp
+++ b/kexi/widget/kexipropertyeditorview.cpp
@@ -132,7 +132,7 @@ KexiPropertyEditorView::KexiPropertyEditorView(KexiMainWindow *mainWin, TQWidget
lyr->addWidget(d->editor);
setFocusProxy(d->editor);
d->objectInfoLabel->setBuddy(d->editor);
- setFocusPolicy(TQ_WheelFocus);
+ setFocusPolicy(TQWidget::WheelFocus);
connect(d->editor, TQT_SIGNAL(propertySetChanged(KoProperty::Set*)),
this, TQT_SLOT(slotPropertySetChanged(KoProperty::Set*)));
diff --git a/kexi/widget/kexiscrollview.cpp b/kexi/widget/kexiscrollview.cpp
index 6b9a819f..ea456b21 100644
--- a/kexi/widget/kexiscrollview.cpp
+++ b/kexi/widget/kexiscrollview.cpp
@@ -60,7 +60,7 @@ KexiScrollView::KexiScrollView(TQWidget *parent, bool preview)
// (fc.blue()+bc.blue()*2)/3);
m_helpFont.setPointSize( m_helpFont.pointSize() * 3 );
- setFocusPolicy(TQ_WheelFocus);
+ setFocusPolicy(TQWidget::WheelFocus);
//initial resize mode is always manual;
//will be changed on show(), if needed
diff --git a/kexi/widget/kexisectionheader.cpp b/kexi/widget/kexisectionheader.cpp
index 2a3003ab..7a414d2b 100644
--- a/kexi/widget/kexisectionheader.cpp
+++ b/kexi/widget/kexisectionheader.cpp
@@ -66,7 +66,7 @@ KexiSectionHeader::KexiSectionHeader(const TQString &caption, Qt::Orientation o,
d->lbl_b = new TQHBox(this);
d->lbl = new TQLabel(TQString(" ")+caption, d->lbl_b);
d->lbl->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred);
- d->lbl->setFocusPolicy(TQ_StrongFocus);
+ d->lbl->setFocusPolicy(TQWidget::StrongFocus);
d->lbl->installEventFilter(this);
installEventFilter(this);
setCaption(caption);
@@ -82,7 +82,7 @@ void KexiSectionHeader::addButton(const TQString& icon, const TQString& toolTip,
{
KPushButton *btn = new KPushButton(d->lbl_b);
btn->setFlat(true);
- btn->setFocusPolicy(TQ_NoFocus);
+ btn->setFocusPolicy(TQWidget::NoFocus);
btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
if (receiver && member) {
connect(btn, TQT_SIGNAL(clicked()), receiver, member);
diff --git a/kexi/widget/pixmapcollection.cpp b/kexi/widget/pixmapcollection.cpp
index c2ce43cf..3ad9e556 100644
--- a/kexi/widget/pixmapcollection.cpp
+++ b/kexi/widget/pixmapcollection.cpp
@@ -343,7 +343,7 @@ PixmapCollectionEditor::getPixmap(const TQString &name)
KPixmapIO io;
TQImage image = io.convertToImage(pixmap);
- pixmap = io.convertToPixmap(image.scale(48, 48, TQ_ScaleMin));
+ pixmap = io.convertToPixmap(image.scale(48, 48, TQImage::ScaleMin));
return pixmap;
}
@@ -420,7 +420,7 @@ PixmapCollectionChooser::getPixmap(const TQString &name)
// We scale the pixmap down to 48x48 to fit in the iconView
KPixmapIO io;
TQImage image = io.convertToImage(pixmap);
- pixmap = io.convertToPixmap(image.scale(48, 48, TQ_ScaleMin));
+ pixmap = io.convertToPixmap(image.scale(48, 48, TQImage::ScaleMin));
return pixmap;
}
diff --git a/kexi/widget/relations/kexirelationview.cpp b/kexi/widget/relations/kexirelationview.cpp
index faf70887..47e9c859 100644
--- a/kexi/widget/relations/kexirelationview.cpp
+++ b/kexi/widget/relations/kexirelationview.cpp
@@ -58,7 +58,7 @@ KexiRelationView::KexiRelationView(TQWidget *parent, const char *name)
// connect(relation, TQT_SIGNAL(relationListUpdated(TQObject *)), this, TQT_SLOT(slotListUpdate(TQObject *)));
viewport()->setPaletteBackgroundColor(colorGroup().mid());
- setFocusPolicy(TQ_WheelFocus);
+ setFocusPolicy(TQWidget::WheelFocus);
setResizePolicy(Manual);
/*MOVED TO KexiRelationDialog
//actions
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());
diff --git a/kexi/widget/utils/kexirecordnavigator.cpp b/kexi/widget/utils/kexirecordnavigator.cpp
index 2c4ef8cf..d61c7dc8 100644
--- a/kexi/widget/utils/kexirecordnavigator.cpp
+++ b/kexi/widget/utils/kexirecordnavigator.cpp
@@ -88,13 +88,13 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navBtnFirst = new TQToolButton(this) );
m_navBtnFirst->setFixedWidth(bw);
- m_navBtnFirst->setFocusPolicy(TQ_NoFocus);
+ m_navBtnFirst->setFocusPolicy(TQWidget::NoFocus);
m_navBtnFirst->setIconSet( SmallIconSet("navigator_first") );
TQToolTip::add(m_navBtnFirst, i18n("First row"));
d->lyr->addWidget( m_navBtnPrev = new TQToolButton(this) );
m_navBtnPrev->setFixedWidth(bw);
- m_navBtnPrev->setFocusPolicy(TQ_NoFocus);
+ m_navBtnPrev->setFocusPolicy(TQWidget::NoFocus);
m_navBtnPrev->setIconSet( SmallIconSet("navigator_prev") );
m_navBtnPrev->setAutoRepeat(true);
TQToolTip::add(m_navBtnPrev, i18n("Previous row"));
@@ -103,7 +103,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navRecordNumber = new KLineEdit(this) );
m_navRecordNumber->setAlignment(AlignRight | AlignVCenter);
- m_navRecordNumber->setFocusPolicy(TQ_ClickFocus);
+ m_navRecordNumber->setFocusPolicy(TQWidget::ClickFocus);
m_navRecordNumber->installEventFilter(this);
// m_navRowNumber->setFixedWidth(fw);
m_navRecordNumberValidator = new TQIntValidator(1, INT_MAX, TQT_TQOBJECT(this));
@@ -116,7 +116,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
lbl_of->setMaximumWidth(fm.width(lbl_of->text())+8);
lbl_of->setReadOnly(true);
lbl_of->setLineWidth(0);
- lbl_of->setFocusPolicy(TQ_NoFocus);
+ lbl_of->setFocusPolicy(TQWidget::NoFocus);
lbl_of->setAlignment(AlignCenter);
d->lyr->addWidget( lbl_of );
@@ -124,7 +124,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
m_navRecordCount->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Preferred);
m_navRecordCount->setReadOnly(true);
m_navRecordCount->setLineWidth(0);
- m_navRecordCount->setFocusPolicy(TQ_NoFocus);
+ m_navRecordCount->setFocusPolicy(TQWidget::NoFocus);
m_navRecordCount->setAlignment(AlignLeft | AlignVCenter);
TQToolTip::add(m_navRecordCount, i18n("Number of rows"));
@@ -135,21 +135,21 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navBtnNext = new TQToolButton(this) );
m_navBtnNext->setFixedWidth(bw);
- m_navBtnNext->setFocusPolicy(TQ_NoFocus);
+ m_navBtnNext->setFocusPolicy(TQWidget::NoFocus);
m_navBtnNext->setIconSet( SmallIconSet("navigator_next") );
m_navBtnNext->setAutoRepeat(true);
TQToolTip::add(m_navBtnNext, i18n("Next row"));
d->lyr->addWidget( m_navBtnLast = new TQToolButton(this) );
m_navBtnLast->setFixedWidth(bw);
- m_navBtnLast->setFocusPolicy(TQ_NoFocus);
+ m_navBtnLast->setFocusPolicy(TQWidget::NoFocus);
m_navBtnLast->setIconSet( SmallIconSet("navigator_last") );
TQToolTip::add(m_navBtnLast, i18n("Last row"));
d->lyr->addSpacing( 6 );
d->lyr->addWidget( m_navBtnNew = new TQToolButton(this) );
m_navBtnNew->setFixedWidth(bw);
- m_navBtnNew->setFocusPolicy(TQ_NoFocus);
+ m_navBtnNew->setFocusPolicy(TQWidget::NoFocus);
m_navBtnNew->setIconSet( SmallIconSet("navigator_new") );
TQToolTip::add(m_navBtnNew, i18n("New row"));
m_navBtnNext->setEnabled(isInsertingEnabled());
diff --git a/kexi/widget/utils/kexitooltip.cpp b/kexi/widget/utils/kexitooltip.cpp
index 2a36ef09..1e8d6d80 100644
--- a/kexi/widget/utils/kexitooltip.cpp
+++ b/kexi/widget/utils/kexitooltip.cpp
@@ -35,7 +35,7 @@ KexiToolTip::KexiToolTip(const TQVariant& value, TQWidget* parent)
, m_value(value)
{
setPalette( TQToolTip::palette() );
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
}
KexiToolTip::~KexiToolTip()