summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqstyle.cpp')
-rw-r--r--qtinterface/tqstyle.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/qtinterface/tqstyle.cpp b/qtinterface/tqstyle.cpp
index 16c9de2..712a9d8 100644
--- a/qtinterface/tqstyle.cpp
+++ b/qtinterface/tqstyle.cpp
@@ -24,6 +24,20 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT4
-TQStyle::TQStyle() : QStyle() {}
+TQStyle::TQStyle() : QStyle(), def(TRUE) {}
+
+bool TQStyle::isDefault() const {
+ return def;
+}
+
+bool QStyleOption::isDefault() const {
+ return def;
+}
+
+Q3ListViewItem* QStyleOption::listViewItem() const {
+ const QStyleOptionQ3ListView *lv = qstyleoption_cast<const QStyleOptionQ3ListView *>(this);
+ QStyleOptionQ3ListViewItem item = lv->items.at(0);
+ return (Q3ListViewItem*)&item;
+}
#endif // USE_QT4 \ No newline at end of file