diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-10 06:26:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-10 06:26:30 +0000 |
commit | 62f474f24066f1400ff57947480d012be1652c68 (patch) | |
tree | 83cdcc05217a91150a5dcba9de9bac4950cdc722 /bibletime/frontend/keychooser/cscrollerwidgetset.cpp | |
parent | 75ebad37bc3cfdb65bb8542dd847683e883c8b55 (diff) | |
download | bibletime-62f474f24066f1400ff57947480d012be1652c68.tar.gz bibletime-62f474f24066f1400ff57947480d012be1652c68.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1173696 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'bibletime/frontend/keychooser/cscrollerwidgetset.cpp')
-rw-r--r-- | bibletime/frontend/keychooser/cscrollerwidgetset.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/bibletime/frontend/keychooser/cscrollerwidgetset.cpp b/bibletime/frontend/keychooser/cscrollerwidgetset.cpp index dd4201b..bbb5b48 100644 --- a/bibletime/frontend/keychooser/cscrollerwidgetset.cpp +++ b/bibletime/frontend/keychooser/cscrollerwidgetset.cpp @@ -16,59 +16,59 @@ #include "frontend/cbtconfig.h" //Qt includes -#include <qlineedit.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qlistbox.h> -#include <qtoolbutton.h> -#include <qevent.h> -#include <qlayout.h> -#include <qpainter.h> -#include <qstyle.h> -#include <qpixmap.h> -#include <qapplication.h> -#include <qtooltip.h> -#include <qrect.h> -#include <qlayout.h> +#include <tqlineedit.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqlistbox.h> +#include <tqtoolbutton.h> +#include <tqevent.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqstyle.h> +#include <tqpixmap.h> +#include <tqapplication.h> +#include <tqtooltip.h> +#include <tqrect.h> +#include <tqlayout.h> const unsigned int WIDTH = 16; const unsigned int ARROW_HEIGHT = 12; const unsigned int MOVER_HEIGHT = 6; -CScrollerWidgetSet::CScrollerWidgetSet(QWidget *parent, const char *name) : QWidget(parent,name) { - m_layout = new QVBoxLayout(this); +CScrollerWidgetSet::CScrollerWidgetSet(TQWidget *parent, const char *name) : TQWidget(parent,name) { + m_layout = new TQVBoxLayout(this); m_layout->setAlignment(Qt::AlignHCenter | Qt::AlignCenter); //setAlignment(Qt::AlignHCenter | Qt::AlignCenter); - btn_up = new QToolButton( UpArrow, this, "btn_up" ); + btn_up = new TQToolButton( UpArrow, this, "btn_up" ); btn_up->setFixedSize(WIDTH, ARROW_HEIGHT); - btn_up->setFocusPolicy(QWidget::NoFocus); + btn_up->setFocusPolicy(TQWidget::NoFocus); btn_fx = new CScrollButton( this, "btn_fx" ); btn_fx->setFixedSize(WIDTH, MOVER_HEIGHT); - btn_fx->setFocusPolicy(QWidget::NoFocus); + btn_fx->setFocusPolicy(TQWidget::NoFocus); - btn_down = new QToolButton( DownArrow, this, "btn_down" ); + btn_down = new TQToolButton( DownArrow, this, "btn_down" ); btn_down->setFixedSize(WIDTH, ARROW_HEIGHT); - btn_down->setFocusPolicy(QWidget::NoFocus); + btn_down->setFocusPolicy(TQWidget::NoFocus); m_layout->addWidget( btn_up,0 ); m_layout->addWidget( btn_fx,0 ); m_layout->addWidget( btn_down,0 ); setMinimumWidth(WIDTH+4); // Kludge to add some spacing but seems to work. - connect(btn_fx, SIGNAL(lock()), SLOT(slotLock())); - connect(btn_fx, SIGNAL(unlock()), SLOT(slotUnlock())); - connect(btn_fx, SIGNAL(change_requested(int)), SLOT(slotScroller(int))); - connect(btn_up, SIGNAL(clicked()), SLOT(slotUpClick())); - connect(btn_down, SIGNAL(clicked()), SLOT(slotDownClick())); + connect(btn_fx, TQT_SIGNAL(lock()), TQT_SLOT(slotLock())); + connect(btn_fx, TQT_SIGNAL(unlock()), TQT_SLOT(slotUnlock())); + connect(btn_fx, TQT_SIGNAL(change_requested(int)), TQT_SLOT(slotScroller(int))); + connect(btn_up, TQT_SIGNAL(clicked()), TQT_SLOT(slotUpClick())); + connect(btn_down, TQT_SIGNAL(clicked()), TQT_SLOT(slotDownClick())); } /** Sets the tooltips for the given entries using the parameters as text. */ -void CScrollerWidgetSet::setToolTips( const QString nextEntryTip, const QString scrollButtonTip, const QString previousEntryTip) { - QToolTip::add (btn_fx, scrollButtonTip); - QToolTip::add (btn_down, nextEntryTip); - QToolTip::add (btn_up, previousEntryTip); +void CScrollerWidgetSet::setToolTips( const TQString nextEntryTip, const TQString scrollButtonTip, const TQString previousEntryTip) { + TQToolTip::add (btn_fx, scrollButtonTip); + TQToolTip::add (btn_down, nextEntryTip); + TQToolTip::add (btn_up, previousEntryTip); } void CScrollerWidgetSet::slotLock() { emit scroller_pressed(); } |