Add support for native TDE file dialogs

Add style hints
Add standard pixmaps
Fix a slew of other problems
r14.0.x
Timothy Pearson 13 years ago
parent d4b531e2cc
commit bbeb99fb4c

@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: libsimplestyleplugin.so
# Generated by qmake (2.01a) (Qt 4.7.4) on: Tue Mar 13 13:25:48 2012
# Generated by qmake (2.01a) (Qt 4.7.4) on: Tue Mar 20 22:24:57 2012
# Project: plugin.pro
# Template: lib
# Command: /usr/bin/qmake-qt4 -o Makefile plugin.pro
@ -16,7 +16,7 @@ CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/tqt3 -I/usr/include/tqt -I/opt/trinity/include -I.
LINK = g++
LFLAGS = -Wl,-O1 -shared
LIBS = $(SUBLIBS) -L/usr/lib/i386-linux-gnu -L/usr/lib -ltqt -ltqt-mt -L /opt/trinity/lib -lDCOP -ltdecore -lQtGui -lQtCore -lpthread
LIBS = $(SUBLIBS) -L/usr/lib/i386-linux-gnu -L/usr/lib -ltqt -ltqt-mt -L /opt/trinity/lib -lDCOP -ltdecore -ltdeui -lkio -lQtGui -lQtCore -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/bin/qmake-qt4

@ -12,7 +12,7 @@ TARGET = simplestyleplugin
INCLUDEPATH += /usr/include/tqt3
INCLUDEPATH += /usr/include/tqt
INCLUDEPATH += /opt/trinity/include
LIBS += -L/usr/lib -ltqt -ltqt-mt -L /opt/trinity/lib -lDCOP -ltdecore
LIBS += -L/usr/lib -ltqt -ltqt-mt -L /opt/trinity/lib -lDCOP -ltdecore -ltdeui -lkio
#! [0]
DESTDIR = ../styles/

File diff suppressed because it is too large Load Diff

@ -20,6 +20,7 @@
#define SIMPLESTYLE_H
#include <QtGui/QWindowsStyle>
#include <QFileDialog>
QT_BEGIN_NAMESPACE
class QPalette;
@ -38,6 +39,8 @@ class TQSpinWidget;
class TQTitleBar;
class TQMenuBar;
class KAboutData;
enum TQt3WidgetType {
TQT3WT_NONE,
TQT3WT_TQProgressBar,
@ -72,6 +75,9 @@ public:
QRect subElementRect(SubElement element, const QStyleOption * option, const QWidget * widget = 0) const;
int pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const;
int styleHint(StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0) const;
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption * option = 0, const QWidget * widget = 0) const;
private:
TQWidget* initializeInterfaceWidget(TQt3WidgetType wt, const QWidget * widget, const QStyleOption* qt4styleoptions = 0) const;
@ -105,6 +111,12 @@ private:
int m_tqt3IconSize_Large;
int m_tqt3IconSize_Listview;
int m_tqt3IconSize_Button;
int m_tqt3DialogButtons_ShowIcons;
mutable const QWidget* m_previousQt4InterfaceWidget;
mutable TQWidget* m_previousTQt3InterfaceWidget;
KAboutData* m_aboutData;
};
#endif

Loading…
Cancel
Save