summaryrefslogtreecommitdiffstats
path: root/korganizer/koglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koglobals.cpp')
-rw-r--r--korganizer/koglobals.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/korganizer/koglobals.cpp b/korganizer/koglobals.cpp
index 21428e85..dd55bd37 100644
--- a/korganizer/koglobals.cpp
+++ b/korganizer/koglobals.cpp
@@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -99,14 +99,14 @@ AlarmClient *KOGlobals::alarmClient() const
return mAlarmClient;
}
-void KOGlobals::fitDialogToScreen( QWidget *wid, bool force )
+void KOGlobals::fitDialogToScreen( TQWidget *wid, bool force )
{
bool resized = false;
int w = wid->frameSize().width();
int h = wid->frameSize().height();
- QRect desk = KGlobalSettings::desktopGeometry( wid );
+ TQRect desk = KGlobalSettings::desktopGeometry( wid );
if ( w > desk.width() ) {
w = desk.width();
resized = true;
@@ -127,43 +127,43 @@ void KOGlobals::fitDialogToScreen( QWidget *wid, bool force )
bool KOGlobals::reverseLayout()
{
#if QT_VERSION >= 0x030000
- return QApplication::reverseLayout();
+ return TQApplication::reverseLayout();
#else
return false;
#endif
}
-QPixmap KOGlobals::smallIcon( const QString& name )
+TQPixmap KOGlobals::smallIcon( const TQString& name )
{
return SmallIcon( name, mOwnInstance );
}
-QIconSet KOGlobals::smallIconSet( const QString& name, int size )
+TQIconSet KOGlobals::smallIconSet( const TQString& name, int size )
{
return SmallIconSet( name, size, mOwnInstance );
}
-QStringList KOGlobals::holiday( const QDate &date )
+TQStringList KOGlobals::holiday( const TQDate &date )
{
- QStringList hdays;
+ TQStringList hdays;
if ( !mHolidays ) return hdays;
- QValueList<KHoliday> list = mHolidays->getHolidays( date );
- QValueList<KHoliday>::ConstIterator it = list.begin();
+ TQValueList<KHoliday> list = mHolidays->getHolidays( date );
+ TQValueList<KHoliday>::ConstIterator it = list.begin();
for ( ; it != list.end(); ++it ) {
hdays.append( (*it).text );
}
return hdays;
}
-bool KOGlobals::isWorkDay( const QDate &date )
+bool KOGlobals::isWorkDay( const TQDate &date )
{
int mask( ~( KOPrefs::instance()->mWorkWeekMask ) );
bool nonWorkDay = ( mask & ( 1 << ( date.dayOfWeek() - 1 ) ) );
if ( KOPrefs::instance()->mExcludeHolidays && mHolidays ) {
- QValueList<KHoliday> list = mHolidays->getHolidays( date );
- QValueList<KHoliday>::ConstIterator it = list.begin();
+ TQValueList<KHoliday> list = mHolidays->getHolidays( date );
+ TQValueList<KHoliday>::ConstIterator it = list.begin();
for ( ; it != list.end(); ++it ) {
nonWorkDay = nonWorkDay
|| ( (*it).Category == KHolidays::HOLIDAY );