summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcelocalconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/resourcelocalconfig.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/resourcelocalconfig.cpp')
-rw-r--r--libkcal/resourcelocalconfig.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkcal/resourcelocalconfig.cpp b/libkcal/resourcelocalconfig.cpp
index cfeadf78..49728fe6 100644
--- a/libkcal/resourcelocalconfig.cpp
+++ b/libkcal/resourcelocalconfig.cpp
@@ -22,8 +22,8 @@
#include <typeinfo>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -40,21 +40,21 @@
using namespace KCal;
-ResourceLocalConfig::ResourceLocalConfig( QWidget* parent, const char* name )
+ResourceLocalConfig::ResourceLocalConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name )
{
resize( 245, 115 );
- QGridLayout *mainLayout = new QGridLayout( this, 2, 2 );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 2, 2 );
- QLabel *label = new QLabel( i18n( "Location:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Location:" ), this );
mURL = new KURLRequester( this );
mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mURL, 1, 1 );
- formatGroup = new QButtonGroup( 1, Horizontal, i18n( "Calendar Format" ), this );
+ formatGroup = new TQButtonGroup( 1, Horizontal, i18n( "Calendar Format" ), this );
- icalButton = new QRadioButton( i18n("iCalendar"), formatGroup );
- vcalButton = new QRadioButton( i18n("vCalendar"), formatGroup );
+ icalButton = new TQRadioButton( i18n("iCalendar"), formatGroup );
+ vcalButton = new TQRadioButton( i18n("vCalendar"), formatGroup );
mainLayout->addWidget( formatGroup, 2, 1 );
}
@@ -77,16 +77,16 @@ void ResourceLocalConfig::loadSettings( KRES::Resource *resource )
void ResourceLocalConfig::saveSettings( KRES::Resource *resource )
{
- QString url = mURL->url();
+ TQString url = mURL->url();
if( url.isEmpty() ) {
KStandardDirs dirs;
- QString saveFolder = dirs.saveLocation( "data", "korganizer" );
- QFile file( saveFolder + "/std.ics" );
+ TQString saveFolder = dirs.saveLocation( "data", "korganizer" );
+ TQFile file( saveFolder + "/std.ics" );
// find a non-existent name
for( int i = 0; file.exists(); ++i )
- file.setName( saveFolder + "/std" + QString::number(i) + ".ics" );
+ file.setName( saveFolder + "/std" + TQString::number(i) + ".ics" );
KMessageBox::information( this, i18n( "You did not specify a URL for this resource. Therefore, the resource will be saved in %1. It is still possible to change this location by editing the resource properties." ).arg( file.name() ) );