summaryrefslogtreecommitdiffstats
path: root/libkdepim/kcmdesignerfields.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkdepim/kcmdesignerfields.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/kcmdesignerfields.cpp')
-rw-r--r--libkdepim/kcmdesignerfields.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/libkdepim/kcmdesignerfields.cpp b/libkdepim/kcmdesignerfields.cpp
index bda4aa7d0..be4aa97bd 100644
--- a/libkdepim/kcmdesignerfields.cpp
+++ b/libkdepim/kcmdesignerfields.cpp
@@ -53,11 +53,11 @@
using namespace KPIM;
-class PageItem : public QCheckListItem
+class PageItem : public TQCheckListItem
{
public:
- PageItem( TQListView *parent, const TQString &path )
- : TQCheckListItem( parent, "", TQCheckListItem::CheckBox ),
+ PageItem( TQListView *tqparent, const TQString &path )
+ : TQCheckListItem( tqparent, "", TQCheckListItem::CheckBox ),
mPath( path ), mIsActive( false )
{
mName = path.mid( path.findRev( '/' ) + 1 );
@@ -85,7 +85,7 @@ class PageItem : public QCheckListItem
allowedTypes.insert( "KDatePicker", i18n( "Date" ) );
while ( it.current() ) {
- if ( allowedTypes.find( it.current()->className() ) != allowedTypes.end() ) {
+ if ( allowedTypes.tqfind( it.current()->className() ) != allowedTypes.end() ) {
TQString name = it.current()->name();
if ( name.startsWith( "X_" ) ) {
new TQListViewItem( this, name,
@@ -126,13 +126,13 @@ class PageItem : public QCheckListItem
bool mIsActive;
};
-KCMDesignerFields::KCMDesignerFields( TQWidget *parent, const char *name )
- : KCModule( parent, name )
+KCMDesignerFields::KCMDesignerFields( TQWidget *tqparent, const char *name )
+ : KCModule( tqparent, name )
{
TQTimer::singleShot( 0, this, TQT_SLOT( delayedInit() ) );
KAboutData *about = new KAboutData( I18N_NOOP( "KCMDesignerfields" ),
- I18N_NOOP( "Qt Designer Fields Dialog" ),
+ I18N_NOOP( "TQt Designer Fields Dialog" ),
0, 0, KAboutData::License_LGPL,
I18N_NOOP( "(c), 2004 Tobias Koenig" ) );
@@ -174,7 +174,7 @@ void KCMDesignerFields::deleteFile()
{
TQListViewItem *item = mPageView->selectedItem();
if ( item ) {
- PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item );
+ PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ? item->tqparent() : item );
if (KMessageBox::warningContinueCancel(this,
i18n( "<qt>Do you really want to delete '<b>%1</b>'?</qt>").arg( pageItem->text(0) ), "", KStdGuiItem::del() )
== KMessageBox::Continue)
@@ -215,9 +215,9 @@ void KCMDesignerFields::loadActivePages(const TQStringList& ai)
{
TQListViewItemIterator it( mPageView );
while ( it.current() ) {
- if ( it.current()->parent() == 0 ) {
+ if ( it.current()->tqparent() == 0 ) {
PageItem *item = static_cast<PageItem*>( it.current() );
- if ( ai.find( item->name() ) != ai.end() ) {
+ if ( ai.tqfind( item->name() ) != ai.end() ) {
item->setOn( true );
item->setIsActive( true );
}
@@ -239,7 +239,7 @@ TQStringList KCMDesignerFields::saveActivePages()
TQStringList activePages;
while ( it.current() ) {
- if ( it.current()->parent() == 0 ) {
+ if ( it.current()->tqparent() == 0 ) {
PageItem *item = static_cast<PageItem*>( it.current() );
activePages.append( item->name() );
}
@@ -269,7 +269,7 @@ void KCMDesignerFields::initGUI()
if ( noDesigner )
{
TQString txt =
- i18n("<qt><b>Warning:</b> Qt Designer could not be found. It is probably not "
+ i18n("<qt><b>Warning:</b> TQt Designer could not be found. It is probably not "
"installed. You will only be able to import existing designer files.</qt>");
TQLabel *lbl = new TQLabel( txt, this );
tqlayout->addWidget( lbl );
@@ -284,7 +284,7 @@ void KCMDesignerFields::initGUI()
mPageView->setFullWidth( true );
hbox->addWidget( mPageView );
- TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Preview of Selected Page"), this );
+ TQGroupBox *box = new TQGroupBox(1, TQt::Horizontal, i18n("Preview of Selected Page"), this );
mPagePreview = new TQLabel( box );
mPagePreview->setMinimumWidth( 300 );
@@ -301,11 +301,11 @@ void KCMDesignerFields::initGUI()
" Elements ('<i>Widgets</i>') to store your own values"
" into %1. Proceed as described below:</p>"
"<ol>"
- "<li>Click on '<i>Edit with Qt Designer</i>'"
+ "<li>Click on '<i>Edit with TQt Designer</i>'"
"<li>In the dialog, select '<i>Widget</i>', then click <i>OK</i>"
"<li>Add your widgets to the form"
- "<li>Save the file in the directory proposed by Qt Designer"
- "<li>Close Qt Designer"
+ "<li>Save the file in the directory proposed by TQt Designer"
+ "<li>Close TQt Designer"
"</ol>"
"<p>In case you already have a designer file (*.ui) located"
" somewhere on your hard disk, simply choose '<i>Import Page</i>'</p>"
@@ -315,7 +315,7 @@ void KCMDesignerFields::initGUI()
" <i>name</i> property to '<i>X_Foo</i>'.</p>"
"<p><b>Important:</b> The widget will edit custom fields with an"
" application name of %2. To change the application name"
- " to be edited, set the widget name in Qt Designer.</p></qt>" )
+ " to be edited, set the widget name in TQt Designer.</p></qt>" )
.arg( applicationName(), applicationName() );
KActiveLabel *activeLabel = new KActiveLabel(
@@ -332,7 +332,7 @@ void KCMDesignerFields::initGUI()
hbox->addWidget( mDeleteButton );
mImportButton = new TQPushButton( i18n( "Import Page..." ), this);
hbox->addWidget( mImportButton );
- mDesignerButton = new TQPushButton( i18n( "Edit with Qt Designer..." ), this );
+ mDesignerButton = new TQPushButton( i18n( "Edit with TQt Designer..." ), this );
hbox->addWidget( mDesignerButton );
if ( noDesigner )
@@ -353,7 +353,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item )
bool widgetItemSelected = false;
if ( item ) {
- if ( item->parent() ) {
+ if ( item->tqparent() ) {
TQString details = TQString( "<qt><table>"
"<tr><td align=\"right\"><b>%1</b></td><td>%2</td></tr>"
"<tr><td align=\"right\"><b>%3</b></td><td>%4</td></tr>"
@@ -371,10 +371,10 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item )
mPageDetails->setText( details );
- PageItem *pageItem = static_cast<PageItem*>( item->parent() );
+ PageItem *pageItem = static_cast<PageItem*>( item->tqparent() );
mPagePreview->setPixmap( pageItem->preview() );
} else {
- mPageDetails->setText( TQString::null );
+ mPageDetails->setText( TQString() );
PageItem *pageItem = static_cast<PageItem*>( item );
mPagePreview->setPixmap( pageItem->preview() );
@@ -386,7 +386,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item )
} else {
mPagePreview->setPixmap( TQPixmap() );
mPagePreview->setFrameStyle( 0 );
- mPageDetails->setText( TQString::null );
+ mPageDetails->setText( TQString() );
}
mDeleteButton->setEnabled( widgetItemSelected );
@@ -394,7 +394,7 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item )
void KCMDesignerFields::itemClicked( TQListViewItem *item )
{
- if ( !item || item->parent() != 0 )
+ if ( !item || item->tqparent() != 0 )
return;
PageItem *pageItem = static_cast<PageItem*>( item );
@@ -420,7 +420,7 @@ void KCMDesignerFields::startDesigner()
TQListViewItem *item = mPageView->selectedItem();
if ( item ) {
- PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item );
+ PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ? item->tqparent() : item );
cmdLine += " " + KProcess::quote( pageItem->path() );
}