From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krdc/kfullscreenpanel.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'krdc/kfullscreenpanel.cpp') diff --git a/krdc/kfullscreenpanel.cpp b/krdc/kfullscreenpanel.cpp index 84067359..0c85cfdd 100644 --- a/krdc/kfullscreenpanel.cpp +++ b/krdc/kfullscreenpanel.cpp @@ -20,7 +20,7 @@ Counter::Counter(float start) : m_currentValue(start) { - connect(&m_timer, SIGNAL(timeout()), SLOT(timeout())); + connect(&m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout())); } void Counter::count(float stop, float stepSize, float frequency) { @@ -54,17 +54,17 @@ void Counter::timeout() { } -KFullscreenPanel::KFullscreenPanel(QWidget* parent, +KFullscreenPanel::KFullscreenPanel(TQWidget* parent, const char *name, - const QSize &resolution) : - QWidget(parent, name), + const TQSize &resolution) : + TQWidget(parent, name), m_child(0), m_layout(0), m_fsResolution(resolution), m_counter(0) { - connect(&m_counter, SIGNAL(countingDownFinished()), SLOT(hide())); - connect(&m_counter, SIGNAL(counted(float)), SLOT(movePanel(float))); + connect(&m_counter, TQT_SIGNAL(countingDownFinished()), TQT_SLOT(hide())); + connect(&m_counter, TQT_SIGNAL(counted(float)), TQT_SLOT(movePanel(float))); } KFullscreenPanel::~KFullscreenPanel() { @@ -76,19 +76,19 @@ void KFullscreenPanel::movePanel(float posY) { show(); } -void KFullscreenPanel::setChild(QWidget *child) { +void KFullscreenPanel::setChild(TQWidget *child) { if (m_layout) delete m_layout; m_child = child; - m_layout = new QVBoxLayout(this); + m_layout = new TQVBoxLayout(this); m_layout->addWidget(child); doLayout(); } void KFullscreenPanel::doLayout() { - QSize s = sizeHint(); + TQSize s = sizeHint(); setFixedSize(s); setGeometry((m_fsResolution.width() - s.width())/2, 0, s.width(), s.height()); @@ -102,11 +102,11 @@ void KFullscreenPanel::startHide() { m_counter.count(-height(), -height()/12.0, 24); } -void KFullscreenPanel::enterEvent(QEvent*) { +void KFullscreenPanel::enterEvent(TQEvent*) { emit mouseEnter(); } -void KFullscreenPanel::leaveEvent(QEvent*) { +void KFullscreenPanel::leaveEvent(TQEvent*) { emit mouseLeave(); } -- cgit v1.2.1