summaryrefslogtreecommitdiffstats
path: root/kexi/widget/kexisectionheader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/kexisectionheader.cpp')
-rw-r--r--kexi/widget/kexisectionheader.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/widget/kexisectionheader.cpp b/kexi/widget/kexisectionheader.cpp
index 7e6989f3..0c1b9f76 100644
--- a/kexi/widget/kexisectionheader.cpp
+++ b/kexi/widget/kexisectionheader.cpp
@@ -22,7 +22,7 @@
#include <kexiutils/utils.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqhbox.h>
#include <tqtooltip.h>
@@ -65,7 +65,7 @@ KexiSectionHeader::KexiSectionHeader(const TQString &caption, Qt::Orientation o,
d->lyr->setAutoAdd(true);
d->lbl_b = new TQHBox(this);
d->lbl = new TQLabel(TQString(" ")+caption, d->lbl_b);
- d->lbl->tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred);
+ d->lbl->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred);
d->lbl->setFocusPolicy(TQ_StrongFocus);
d->lbl->installEventFilter(this);
installEventFilter(this);
@@ -83,7 +83,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->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
+ btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
if (receiver && member) {
connect(btn, TQT_SIGNAL(clicked()), receiver, member);
}
@@ -113,19 +113,19 @@ bool KexiSectionHeader::eventFilter( TQObject *o, TQEvent *e )
void KexiSectionHeader::slotFocus(bool in)
{
- in = in || tqfocusWidget()==this;
+ in = in || focusWidget()==this;
d->lbl->setPaletteBackgroundColor(
- in ? tqpalette().active().color(TQColorGroup::Highlight) : tqpalette().active().color(TQColorGroup::Background) );
+ in ? palette().active().color(TQColorGroup::Highlight) : palette().active().color(TQColorGroup::Background) );
d->lbl->setPaletteForegroundColor(
- in ? tqpalette().active().color(TQColorGroup::HighlightedText) : tqpalette().active().color(TQColorGroup::Foreground) );
+ in ? palette().active().color(TQColorGroup::HighlightedText) : palette().active().color(TQColorGroup::Foreground) );
}
-TQSize KexiSectionHeader::tqsizeHint() const
+TQSize KexiSectionHeader::sizeHint() const
{
if (!d->lyr->view)
- return TQWidget::tqsizeHint();
- TQSize s = d->lyr->view->tqsizeHint();
- return TQSize(s.width(), d->lbl->tqsizeHint().height() + s.height());
+ return TQWidget::sizeHint();
+ TQSize s = d->lyr->view->sizeHint();
+ return TQSize(s.width(), d->lbl->sizeHint().height() + s.height());
}
/*void KexiSectionHeader::setFocus()