summaryrefslogtreecommitdiffstats
path: root/src/gvcore/threadgate.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/threadgate.cpp
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/threadgate.cpp')
-rw-r--r--src/gvcore/threadgate.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gvcore/threadgate.cpp b/src/gvcore/threadgate.cpp
index fb0c65b..290059d 100644
--- a/src/gvcore/threadgate.cpp
+++ b/src/gvcore/threadgate.cpp
@@ -33,8 +33,8 @@ namespace Gwenview {
// there's even no need to do any locking.
ThreadGate::ThreadGate() {
- connect( this, SIGNAL( signalColor( QColor&, const char* )),
- this, SLOT( slotColor( QColor&, const char* )));
+ connect( this, TQT_SIGNAL( signalColor( TQColor&, const char* )),
+ this, TQT_SLOT( slotColor( TQColor&, const char* )));
}
ThreadGate* ThreadGate::instance() {
@@ -42,19 +42,19 @@ ThreadGate* ThreadGate::instance() {
return &gate;
}
-QColor ThreadGate::color( const char* name ) {
+TQColor ThreadGate::color( const char* name ) {
if( name == NULL || name[ 0 ] == '\0' || name[ 0 ] == '#' )
- return QColor( name );
+ return TQColor( name );
// named color ... needs to be created in the main thread
if( TSThread::currentThread() == TSThread::mainThread())
- return QColor( name );
- QColor col;
- TSThread::currentThread()->emitCancellableSignal( this, SIGNAL( signalColor( QColor&, const char* )), col, name );
+ return TQColor( name );
+ TQColor col;
+ TSThread::currentThread()->emitCancellableSignal( this, TQT_SIGNAL( signalColor( TQColor&, const char* )), col, name );
return col;
}
-void ThreadGate::slotColor( QColor& col, const char* name ) {
- col = QColor( name );
+void ThreadGate::slotColor( TQColor& col, const char* name ) {
+ col = TQColor( name );
}
} // namespace