summaryrefslogtreecommitdiffstats
path: root/lib/syncAction.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-03-07 10:54:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-03-07 10:54:50 +0900
commit8927ed0007f6fbe9d1aae5bdb2905e2eb3b120a2 (patch)
tree51482e3e4c7e52764e0269827e7b2bb93c5499e2 /lib/syncAction.cpp
parent596d117d87bb8b02bf8b54f0181af2642d18cecc (diff)
downloadkpilot-remove/kde-is-version.tar.gz
kpilot-remove/kde-is-version.zip
Remove use of KDE_IS_VERSIONremove/kde-is-version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/syncAction.cpp')
-rw-r--r--lib/syncAction.cpp90
1 files changed, 0 insertions, 90 deletions
diff --git a/lib/syncAction.cpp b/lib/syncAction.cpp
index c870ac9..d3eca6e 100644
--- a/lib/syncAction.cpp
+++ b/lib/syncAction.cpp
@@ -327,7 +327,6 @@ int SyncAction::questionYesNo(const TQString & text,
startTickle(timeout);
}
-#if KDE_IS_VERSION(3,3,0)
r = (KMessageBox::ButtonCode) KMessageBox::createKMessageBox(dialog,
TQMessageBox::Question,
text,
@@ -336,50 +335,6 @@ int SyncAction::questionYesNo(const TQString & text,
&checkboxReturn,
0);
-#else
- // The following code is taken from KDialogBase.cpp,
- // part of the KDE 2.2 libraries. Copyright 2001
- // by Waldo Bastian.
- //
- //
- TQVBox *topcontents = new TQVBox(dialog);
-
- topcontents->setSpacing(KDialog::spacingHint() * 2);
- topcontents->setMargin(KDialog::marginHint() * 2);
-
- TQWidget *contents = new TQWidget(topcontents);
- TQHBoxLayout *lay = new TQHBoxLayout(contents);
-
- lay->setSpacing(KDialog::spacingHint() * 2);
-
- lay->addStretch(1);
- TQLabel *label1 = new TQLabel( contents);
- label1->setPixmap(TQMessageBox::standardIcon(TQMessageBox::Information));
- lay->add( label1 );
- TQLabel *label2 = new TQLabel( text, contents);
- label2->setMinimumSize(label2->sizeHint());
- lay->add(label2);
- lay->addStretch(1);
-
- TQSize extraSize = TQSize(50, 30);
-
- TQCheckBox *checkbox = 0L;
- if (!key.isEmpty())
- {
- checkbox = new TQCheckBox(i18n("Do not ask again"),topcontents);
- extraSize = TQSize(50,0);
- }
-
- dialog->setMainWidget(topcontents);
- dialog->enableButtonSeparator(false);
- dialog->incInitialSize(extraSize);
-
- r = dialog->exec();
- if (checkbox)
- {
- checkboxReturn = checkbox->isChecked();
- }
-#endif
switch(r)
{
@@ -440,7 +395,6 @@ int SyncAction::questionYesNoCancel(const TQString & text,
startTickle(timeout);
}
-#if KDE_IS_VERSION(3,3,0)
r = KMessageBox::createKMessageBox(dialog,
TQMessageBox::Question,
text,
@@ -448,50 +402,6 @@ int SyncAction::questionYesNoCancel(const TQString & text,
(key.isEmpty() ? TQString() : i18n("&Do not ask again")),
&checkboxReturn,
0);
-#else
- // The following code is taken from KDialogBase.cpp,
- // part of the KDE 2.2 libraries. Copyright 2001
- // by Waldo Bastian.
- //
- //
- TQVBox *topcontents = new TQVBox(dialog);
-
- topcontents->setSpacing(KDialog::spacingHint() * 2);
- topcontents->setMargin(KDialog::marginHint() * 2);
-
- TQWidget *contents = new TQWidget(topcontents);
- TQHBoxLayout *lay = new TQHBoxLayout(contents);
-
- lay->setSpacing(KDialog::spacingHint() * 2);
-
- lay->addStretch(1);
- TQLabel *label1 = new TQLabel( contents);
- label1->setPixmap(TQMessageBox::standardIcon(TQMessageBox::Information));
- lay->add( label1 );
- TQLabel *label2 = new TQLabel( text, contents);
- label2->setMinimumSize(label2->sizeHint());
- lay->add(label2);
- lay->addStretch(1);
-
- TQSize extraSize = TQSize(50, 30);
-
- TQCheckBox *checkbox = 0L;
- if (!key.isEmpty())
- {
- checkbox = new TQCheckBox(i18n("Do not ask again"),topcontents);
- extraSize = TQSize(50,0);
- }
-
- dialog->setMainWidget(topcontents);
- dialog->enableButtonSeparator(false);
- dialog->incInitialSize(extraSize);
-
- r = dialog->exec();
- if (checkbox)
- {
- checkboxReturn = checkbox->isChecked();
- }
-#endif
switch(r)
{