This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///home/justin/tmp/tmp/svn/neatstuff/trunk@9 972056c0-ec0e-4c9f-ad5b-9eb1d9b6bad5
- Loading branch information
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#include "qgtk.h" | ||
|
||
#include <qpixmap.h> | ||
|
||
QGtk::QGtk() | ||
: QMotifPlusStyle() | ||
{ | ||
} | ||
|
||
QGtk::~QGtk() | ||
{ | ||
} | ||
|
||
void QGtk::polishPopupMenu(QPopupMenu *pm) | ||
{ | ||
QMotifPlusStyle::polishPopupMenu(pm); | ||
} | ||
|
||
void QGtk::drawPrimitive(QStyle::PrimitiveElement pe, QPainter *paint, const QRect &rect, const QColorGroup &cg, unsigned int flags, const QStyleOption &so) const | ||
{ | ||
QMotifPlusStyle::drawPrimitive(pe, paint, rect, cg, flags, so); | ||
} | ||
|
||
void QGtk::drawControl(QStyle::ControlElement ce, QPainter *paint, const QWidget *widget, const QRect &rect, const QColorGroup &cg, unsigned int flags, const QStyleOption &so) const | ||
{ | ||
QMotifPlusStyle::drawControl(ce, paint, widget, rect, cg, flags, so); | ||
} | ||
|
||
void QGtk::drawControlMask(QStyle::ControlElement ce, QPainter *paint, const QWidget *widget, const QRect &rect, const QStyleOption &so) const | ||
{ | ||
QMotifPlusStyle::drawControlMask(ce, paint, widget, rect, so); | ||
} | ||
|
||
QRect QGtk::subRect(QStyle::SubRect sr, const QWidget *widget) const | ||
{ | ||
return QMotifPlusStyle::subRect(sr, widget); | ||
} | ||
|
||
void QGtk::drawComplexControl(QStyle::ComplexControl cc, QPainter *paint, const QWidget *widget, const QRect &rect, const QColorGroup &cg, unsigned int how, unsigned int sub, unsigned int subActive, const QStyleOption &so) const | ||
{ | ||
QMotifPlusStyle::drawComplexControl(cc, paint, widget, rect, cg, how, sub, subActive, so); | ||
} | ||
|
||
void QGtk::drawComplexControlMask(QStyle::ComplexControl cc, QPainter *paint, const QWidget *widget, const QRect &rect, const QStyleOption &so) const | ||
{ | ||
QMotifPlusStyle::drawComplexControlMask(cc, paint, widget, rect, so); | ||
} | ||
|
||
QRect QGtk::querySubControlMetrics(QStyle::ComplexControl cc, const QWidget *widget, QStyle::SubControl sc, const QStyleOption &so) const | ||
{ | ||
return QMotifPlusStyle::querySubControlMetrics(cc, widget, sc, so); | ||
} | ||
|
||
QStyle::SubControl QGtk::querySubControl(QStyle::ComplexControl cc, const QWidget *widget, const QPoint &p, const QStyleOption &so) const | ||
{ | ||
return QMotifPlusStyle::querySubControl(cc, widget, p, so); | ||
} | ||
|
||
int QGtk::pixelMetric(QStyle::PixelMetric pm, const QWidget *widget) const | ||
{ | ||
return QMotifPlusStyle::pixelMetric(pm, widget); | ||
} | ||
|
||
QSize QGtk::sizeFromContents(QStyle::ContentsType ct, const QWidget *widget, const QSize &size, const QStyleOption &so) const | ||
{ | ||
return QMotifPlusStyle::sizeFromContents(ct, widget, size, so); | ||
} | ||
|
||
int QGtk::styleHint(QStyle::StyleHint sh, const QWidget *widget, const QStyleOption &so, QStyleHintReturn *shr) const | ||
{ | ||
return QMotifPlusStyle::styleHint(sh, widget, so, shr); | ||
} | ||
|
||
QPixmap QGtk::stylePixmap(QStyle::StylePixmap sp, const QWidget *widget, const QStyleOption &so) const | ||
{ | ||
return QMotifPlusStyle::stylePixmap(sp, widget, so); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef QGTK_H | ||
#define QGTK_H | ||
|
||
#include <qmotifplusstyle.h> | ||
|
||
class QGtk : public QMotifPlusStyle | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
QGtk(); | ||
~QGtk(); | ||
|
||
virtual void polishPopupMenu(QPopupMenu*); | ||
virtual void drawPrimitive(QStyle::PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, unsigned int = Style_Default, const QStyleOption& = QStyleOption::Default) const; | ||
virtual void drawControl(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int = Style_Default, const QStyleOption& = QStyleOption::Default) const; | ||
virtual void drawControlMask(QStyle::ControlElement, QPainter*, const QWidget*, const QRect&, const QStyleOption& = QStyleOption::Default) const; | ||
virtual QRect subRect(QStyle::SubRect, const QWidget*) const; | ||
virtual void drawComplexControl(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, unsigned int = Style_Default, unsigned int = SC_All, unsigned int = SC_None, const QStyleOption& = QStyleOption::Default) const; | ||
virtual void drawComplexControlMask(QStyle::ComplexControl, QPainter*, const QWidget*, const QRect&, const QStyleOption& = QStyleOption::Default) const; | ||
virtual QRect querySubControlMetrics(QStyle::ComplexControl, const QWidget*, QStyle::SubControl, const QStyleOption& = QStyleOption::Default) const; | ||
virtual QStyle::SubControl querySubControl(QStyle::ComplexControl, const QWidget*, const QPoint&, const QStyleOption& = QStyleOption::Default) const; | ||
virtual int pixelMetric(QStyle::PixelMetric, const QWidget* = 0) const; | ||
virtual QSize sizeFromContents(QStyle::ContentsType, const QWidget*, const QSize&, const QStyleOption& = QStyleOption::Default) const; | ||
virtual int styleHint(QStyle::StyleHint, const QWidget* = 0, const QStyleOption& = QStyleOption::Default, QStyleHintReturn* = 0) const; | ||
virtual QPixmap stylePixmap(QStyle::StylePixmap, const QWidget* = 0, const QStyleOption& = QStyleOption::Default) const; | ||
}; | ||
|
||
#endif |