summaryrefslogtreecommitdiffstats
path: root/sip/qt/qdatetime.sip
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-07-29 12:36:09 +0000
committerSlávek Banko <slavek.banko@axis.cz>2022-07-31 16:43:31 +0200
commit30381ed7e532384067ad63b4631950d821313199 (patch)
tree88fc97a0997db6456391b72c4df8345a46ae627d /sip/qt/qdatetime.sip
parent4978511ebb7e8d31dab64485d1ac87b6e004be81 (diff)
downloadpytqt-30381ed7e532384067ad63b4631950d821313199.tar.gz
pytqt-30381ed7e532384067ad63b4631950d821313199.zip
Remove support for earlier Qt/TQt versions
Conditional code in the .sip files linked to specific older versions has been removed. Since the versions of TQt and python-tqt are running in parallel, the support for older versions was clutter that would never actually be used now. Signed-off-by: aneejit1 <aneejit1@gmail.com> (cherry picked from commit 33a0297b35ab40e2d09cf37e351095b58725c8d5)
Diffstat (limited to 'sip/qt/qdatetime.sip')
-rw-r--r--sip/qt/qdatetime.sip54
1 files changed, 0 insertions, 54 deletions
diff --git a/sip/qt/qdatetime.sip b/sip/qt/qdatetime.sip
index 2a62440..3df731d 100644
--- a/sip/qt/qdatetime.sip
+++ b/sip/qt/qdatetime.sip
@@ -86,38 +86,19 @@ public:
int daysInMonth() const;
int daysInYear() const;
-%If (TQt_3_1_0 -)
int weekNumber(int * = 0) const;
-%End
-%If (- TQt_2_00)
- virtual const char *monthName(int) const;
- virtual const char *dayName(int) const;
-%End
-%If (TQt_2_00 - TQt_3_0_0)
- virtual TQString monthName(int) const;
- virtual TQString dayName(int) const;
-%End
-%If (TQt_3_0_0 -)
static TQString shortMonthName(int);
static TQString shortDayName(int);
static TQString longMonthName(int);
static TQString longDayName(int);
-%End
-%If (- TQt_3_0_0)
- TQString toString() const;
-%End
-%If (TQt_3_0_0 -)
TQString toString(TQt::DateFormat = TQt::TextDate) const;
TQString toString(const TQString &) const;
-%End
bool setYMD(int,int,int);
TQDate addDays(int) const;
-%If (TQt_3_0_0 -)
TQDate addMonths(int) const;
TQDate addYears(int) const;
-%End
int daysTo(const TQDate &) const;
int __nonzero__() const;
@@ -133,20 +114,14 @@ public:
bool operator>=(const TQDate &) const;
static TQDate currentDate();
-%If (TQt_3_1_0 -)
static TQDate currentDate(TQt::TimeSpec);
-%End
-%If (TQt_3_0_0 -)
static TQDate fromString(const TQString &,TQt::DateFormat = TQt::TextDate);
-%End
static bool isValid(int,int,int);
static bool leapYear(int);
-%If (TQt_3_0_0 -)
// These are defined in TQt3 but not documented.
//static uint gregorianToJulian(int,int,int);
//static void julianToGregorian(uint,int &,int &,int &);
-%End
};
@@ -167,13 +142,8 @@ public:
int second() const;
int msec() const;
-%If (- TQt_3_0_0)
- TQString toString() const;
-%End
-%If (TQt_3_0_0 -)
TQString toString(TQt::DateFormat = TQt::TextDate) const;
TQString toString(const TQString &) const;
-%End
bool setHMS(int,int,int,int = 0);
@@ -195,22 +165,13 @@ public:
bool operator>=(const TQTime &) const;
static TQTime currentTime();
-%If (TQt_3_1_0 -)
static TQTime currentTime(TQt::TimeSpec);
-%End
-%If (TQt_3_0_0 -)
static TQTime fromString(const TQString &,TQt::DateFormat = TQt::TextDate);
-%End
static bool isValid(int,int,int,int = 0);
void start();
int restart();
-%If (- TQt_3_0_0)
- int elapsed();
-%End
-%If (TQt_3_0_0 -)
int elapsed() const;
-%End
};
@@ -230,29 +191,18 @@ public:
TQDate date() const;
TQTime time() const;
-%If (TQt_3_1_0 -)
uint toTime_t() const;
-%End
void setDate(const TQDate &);
void setTime(const TQTime &);
void setTime_t(uint);
-%If (TQt_3_1_0 -)
void setTime_t(uint,TQt::TimeSpec);
-%End
-%If (- TQt_3_0_0)
- TQString toString() const;
-%End
-%If (TQt_3_0_0 -)
TQString toString(TQt::DateFormat = TQt::TextDate) const;
TQString toString(const TQString &) const;
-%End
TQDateTime addDays(int) const;
-%If (TQt_3_0_0 -)
TQDateTime addMonths(int) const;
TQDateTime addYears(int) const;
-%End
TQDateTime addSecs(int) const;
int daysTo(const TQDateTime &) const;
int secsTo(const TQDateTime &) const;
@@ -270,11 +220,7 @@ public:
bool operator>=(const TQDateTime &) const;
static TQDateTime currentDateTime();
-%If (TQt_3_1_0 -)
static TQDateTime currentDateTime(TQt::TimeSpec);
-%End
-%If (TQt_3_0_0 -)
static TQDateTime fromString(const TQString &,
TQt::DateFormat = TQt::TextDate);
-%End
};