summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorgeneral.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 /korganizer/koeditorgeneral.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 'korganizer/koeditorgeneral.cpp')
-rw-r--r--korganizer/koeditorgeneral.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp
index 6b7e2caa7..3a15188ab 100644
--- a/korganizer/koeditorgeneral.cpp
+++ b/korganizer/koeditorgeneral.cpp
@@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
@@ -68,8 +68,8 @@
#include "koeditorgeneral.moc"
#include "kohelper.h"
-KOEditorGeneral::KOEditorGeneral( TQObject *parent, const char* name) :
- TQObject( parent, name ), mAttachments(0)
+KOEditorGeneral::KOEditorGeneral( TQObject *tqparent, const char* name) :
+ TQObject( tqparent, name ), mAttachments(0)
{
mType = "Event";
ResourceCached::setEditorWindowOpen(true);
@@ -82,8 +82,8 @@ KOEditorGeneral::~KOEditorGeneral()
}
-FocusLineEdit::FocusLineEdit( TQWidget *parent )
- : TQLineEdit( parent ), mSkipFirst( true )
+FocusLineEdit::FocusLineEdit( TQWidget *tqparent )
+ : TQLineEdit( tqparent ), mSkipFirst( true )
{
}
@@ -98,37 +98,37 @@ void FocusLineEdit::focusInEvent ( TQFocusEvent *e )
}
-void KOEditorGeneral::initHeader( TQWidget *parent,TQBoxLayout *topLayout)
+void KOEditorGeneral::initHeader( TQWidget *tqparent,TQBoxLayout *topLayout)
{
TQGridLayout *headerLayout = new TQGridLayout();
headerLayout->setSpacing( topLayout->spacing() );
topLayout->addLayout( headerLayout );
TQString whatsThis = i18n("Sets the Title of this event or to-do.");
- TQLabel *summaryLabel = new TQLabel( i18n("T&itle:"), parent );
+ TQLabel *summaryLabel = new TQLabel( i18n("T&itle:"), tqparent );
TQWhatsThis::add( summaryLabel, whatsThis );
TQFont f = summaryLabel->font();
f.setBold( true );
summaryLabel->setFont(f);
headerLayout->addWidget(summaryLabel,1,0);
- mSummaryEdit = new FocusLineEdit( parent );
+ mSummaryEdit = new FocusLineEdit( tqparent );
TQWhatsThis::add( mSummaryEdit, whatsThis );
connect( mSummaryEdit, TQT_SIGNAL( focusReceivedSignal() ),
TQT_SIGNAL( focusReceivedSignal() ) );
headerLayout->addWidget(mSummaryEdit,1,1);
summaryLabel->setBuddy( mSummaryEdit );
- mAttendeeSummaryLabel = new TQLabel( parent );
+ mAttendeeSummaryLabel = new TQLabel( tqparent );
updateAttendeeSummary( 0 );
headerLayout->addWidget( mAttendeeSummaryLabel, 1, 2 );
whatsThis = i18n("Sets where the event or to-do will take place.");
- TQLabel *locationLabel = new TQLabel( i18n("&Location:"), parent );
+ TQLabel *locationLabel = new TQLabel( i18n("&Location:"), tqparent );
TQWhatsThis::add( locationLabel, whatsThis );
headerLayout->addWidget(locationLabel,2,0);
- mLocationEdit = new TQLineEdit( parent );
+ mLocationEdit = new TQLineEdit( tqparent );
TQWhatsThis::add( mLocationEdit, whatsThis );
headerLayout->addMultiCellWidget( mLocationEdit, 2, 2, 1, 2 );
locationLabel->setBuddy( mLocationEdit );
@@ -136,31 +136,31 @@ void KOEditorGeneral::initHeader( TQWidget *parent,TQBoxLayout *topLayout)
TQBoxLayout *thirdLineLayout = new TQHBoxLayout();
headerLayout->addMultiCellLayout( thirdLineLayout, 3, 3, 0, 2 );
- mResourceLabel = new TQLabel( parent );
+ mResourceLabel = new TQLabel( tqparent );
mResourceLabel->hide();
thirdLineLayout->addWidget( mResourceLabel );
whatsThis = i18n("Allows you to select the categories that this event or to-do belongs to.");
- TQLabel *categoriesLabel = new TQLabel( i18n("Categories:"), parent );
+ TQLabel *categoriesLabel = new TQLabel( i18n("Categories:"), tqparent );
TQWhatsThis::add( categoriesLabel, whatsThis );
thirdLineLayout->addWidget( categoriesLabel );
- mCategoriesLabel = new KSqueezedTextLabel( parent );
+ mCategoriesLabel = new KSqueezedTextLabel( tqparent );
TQWhatsThis::add( mCategoriesLabel, whatsThis );
mCategoriesLabel->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
thirdLineLayout->addWidget( mCategoriesLabel );
- mCategoriesButton = new TQPushButton( parent );
+ mCategoriesButton = new TQPushButton( tqparent );
mCategoriesButton->setText(i18n("Select..."));
TQWhatsThis::add( mCategoriesButton, whatsThis );
connect(mCategoriesButton,TQT_SIGNAL(clicked()),TQT_SLOT(selectCategories()));
thirdLineLayout->addWidget( mCategoriesButton );
}
-void KOEditorGeneral::initSecrecy(TQWidget *parent, TQBoxLayout *topLayout)
+void KOEditorGeneral::initSecrecy(TQWidget *tqparent, TQBoxLayout *topLayout)
{
TQBoxLayout *secrecyLayout = new TQHBoxLayout( topLayout );
- TQLabel *secrecyLabel = new TQLabel(i18n("Acc&ess:"),parent);
+ TQLabel *secrecyLabel = new TQLabel(i18n("Acc&ess:"),tqparent);
TQString whatsThis = i18n("Sets whether the access to this event or to-do "
"is restricted. Please note that KOrganizer "
"currently does not use this setting, so the "
@@ -171,16 +171,16 @@ void KOEditorGeneral::initSecrecy(TQWidget *parent, TQBoxLayout *topLayout)
TQWhatsThis::add( secrecyLabel, whatsThis );
secrecyLayout->addWidget(secrecyLabel);
- mSecrecyCombo = new TQComboBox(parent);
+ mSecrecyCombo = new TQComboBox(tqparent);
TQWhatsThis::add( mSecrecyCombo, whatsThis );
mSecrecyCombo->insertStringList(Incidence::secrecyList());
secrecyLayout->addWidget(mSecrecyCombo);
secrecyLabel->setBuddy( mSecrecyCombo );
}
-void KOEditorGeneral::initDescription(TQWidget *parent,TQBoxLayout *topLayout)
+void KOEditorGeneral::initDescription(TQWidget *tqparent,TQBoxLayout *topLayout)
{
- mDescriptionEdit = new KTextEdit(parent);
+ mDescriptionEdit = new KTextEdit(tqparent);
TQWhatsThis::add( mDescriptionEdit,
i18n("Sets the description for this event or to-do. This "
"will be displayed in a reminder if one is set, "
@@ -194,16 +194,16 @@ void KOEditorGeneral::initDescription(TQWidget *parent,TQBoxLayout *topLayout)
topLayout->addWidget(mDescriptionEdit, 4);
}
-void KOEditorGeneral::initAlarm( TQWidget *parent, TQBoxLayout *topLayout )
+void KOEditorGeneral::initAlarm( TQWidget *tqparent, TQBoxLayout *topLayout )
{
TQBoxLayout *alarmLayout = new TQHBoxLayout( topLayout );
- mAlarmButton = new TQCheckBox( parent );
+ mAlarmButton = new TQCheckBox( tqparent );
TQWhatsThis::add( mAlarmButton, i18n( "Enable reminders for this event or to-do." ) );
TQToolTip::add( mAlarmButton, i18n( "Enable reminders" ) );
alarmLayout->addWidget( mAlarmButton );
- mAlarmAdvancedButton = new TQPushButton( parent );
+ mAlarmAdvancedButton = new TQPushButton( tqparent );
mAlarmAdvancedButton->setIconSet( KOGlobals::self()->smallIconSet( "bell", 16 ) );
TQWhatsThis::add( mAlarmAdvancedButton,
i18n( "Push this button to create an advanced set of reminders "
@@ -212,7 +212,7 @@ void KOEditorGeneral::initAlarm( TQWidget *parent, TQBoxLayout *topLayout )
connect( mAlarmAdvancedButton, TQT_SIGNAL(clicked()), TQT_SLOT(editAlarms()) );
alarmLayout->addWidget( mAlarmAdvancedButton );
- mSimpleAlarmBox = new TQHBox( parent );
+ mSimpleAlarmBox = new TQHBox( tqparent );
alarmLayout->addWidget( mSimpleAlarmBox );
TQString whatsThis, toolTip;
@@ -235,7 +235,7 @@ void KOEditorGeneral::initAlarm( TQWidget *parent, TQBoxLayout *topLayout )
TQWhatsThis::add( mAlarmIncrCombo, whatsThis );
TQToolTip::add( mAlarmIncrCombo, toolTip );
- mAlarmInfoLabel = new TQLabel( parent );
+ mAlarmInfoLabel = new TQLabel( tqparent );
if ( mType == "Event" ) {
mAlarmInfoLabel->setText( i18n( "before the start" ) );
} else {
@@ -253,9 +253,9 @@ void KOEditorGeneral::initAlarm( TQWidget *parent, TQBoxLayout *topLayout )
connect( mAlarmButton, TQT_SIGNAL(toggled(bool)), mAlarmInfoLabel, TQT_SLOT(setEnabled(bool)) );
}
-void KOEditorGeneral::initAttachments(TQWidget *parent,TQBoxLayout *topLayout)
+void KOEditorGeneral::initAttachments(TQWidget *tqparent,TQBoxLayout *topLayout)
{
- mAttachments = new KOEditorAttachments( KDialog::spacingHint(), parent );
+ mAttachments = new KOEditorAttachments( KDialog::spacingHint(), tqparent );
connect( mAttachments, TQT_SIGNAL( openURL( const KURL & ) ) ,
this, TQT_SIGNAL( openURL( const KURL & ) ) );
topLayout->addWidget( mAttachments, 1 );