summaryrefslogtreecommitdiffstats
path: root/krdc/kfullscreenpanel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /krdc/kfullscreenpanel.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc/kfullscreenpanel.cpp')
-rw-r--r--krdc/kfullscreenpanel.cpp22
1 files changed, 11 insertions, 11 deletions
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();
}