diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-08 14:18:04 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-08 14:18:04 +0000 |
| commit | 4b064ca4a4b938814fdbe3d14c075d8e3de326e3 (patch) | |
| tree | ef50fcbf8354e3dffab6eeb7593bcdba9978530f /examples/GuiClient | |
| parent | e4ffbeb064894b61c85e09e1a369a13f9906ea2f (diff) | |
| download | qxmpp-4b064ca4a4b938814fdbe3d14c075d8e3de326e3.tar.gz | |
don't use generic name
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/GuiClient.pro | 4 | ||||
| -rw-r--r-- | examples/GuiClient/statusToolButton.cpp (renamed from examples/GuiClient/customToolButton.cpp) | 8 | ||||
| -rw-r--r-- | examples/GuiClient/statusToolButton.h (renamed from examples/GuiClient/customToolButton.h) | 10 | ||||
| -rw-r--r-- | examples/GuiClient/statusWidget.ui | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/examples/GuiClient/GuiClient.pro b/examples/GuiClient/GuiClient.pro index dd528beb..6633f51a 100644 --- a/examples/GuiClient/GuiClient.pro +++ b/examples/GuiClient/GuiClient.pro @@ -20,7 +20,7 @@ SOURCES += main.cpp \ customLabel.cpp \ avatarWidget.cpp \ statusTextWidget.cpp \ - customToolButton.cpp \ + statusToolButton.cpp \ vCardCache.cpp \ profileDialog.cpp \ capabilitiesCache.cpp \ @@ -42,7 +42,7 @@ HEADERS += messageGraphicsItem.h \ customLabel.h \ avatarWidget.h \ statusTextWidget.h \ - customToolButton.h \ + statusToolButton.h \ vCardCache.h \ profileDialog.h \ capabilitiesCache.h \ diff --git a/examples/GuiClient/customToolButton.cpp b/examples/GuiClient/statusToolButton.cpp index 966a0a3c..acd8f165 100644 --- a/examples/GuiClient/customToolButton.cpp +++ b/examples/GuiClient/statusToolButton.cpp @@ -22,17 +22,17 @@ */ -#include "customToolButton.h" +#include "statusToolButton.h" #include <QPainter> #include <QStyle> #include <QStyleOptionToolButton> -customToolButton::customToolButton(QWidget* parent) : QToolButton(parent) +statusToolButton::statusToolButton(QWidget* parent) : QToolButton(parent) { setMinimumSize(QSize(20, 18)); } -void customToolButton::paintEvent(QPaintEvent* event) +void statusToolButton::paintEvent(QPaintEvent* event) { Q_UNUSED(event); QPainter painter(this); @@ -65,7 +65,7 @@ void customToolButton::paintEvent(QPaintEvent* event) painter.drawImage(rectDelta, image); } -QSize customToolButton::sizeHint() const +QSize statusToolButton::sizeHint() const { QFont font; font.setBold(true); diff --git a/examples/GuiClient/customToolButton.h b/examples/GuiClient/statusToolButton.h index 0fd3d958..e60924f1 100644 --- a/examples/GuiClient/customToolButton.h +++ b/examples/GuiClient/statusToolButton.h @@ -22,17 +22,17 @@ */ -#ifndef CUSTOMTOOLBUTTON_H -#define CUSTOMTOOLBUTTON_H +#ifndef STATUSTOOLBUTTON_H +#define STATUSTOOLBUTTON_H #include <QToolButton> -class customToolButton : public QToolButton +class statusToolButton : public QToolButton { public: - customToolButton(QWidget* parent = 0); + statusToolButton(QWidget* parent = 0); void paintEvent(QPaintEvent* event); QSize sizeHint() const; }; -#endif // CUSTOMTOOLBUTTON_H +#endif // STATUSTOOLBUTTON_H diff --git a/examples/GuiClient/statusWidget.ui b/examples/GuiClient/statusWidget.ui index 32e27d9c..2b8771ca 100644 --- a/examples/GuiClient/statusWidget.ui +++ b/examples/GuiClient/statusWidget.ui @@ -59,7 +59,7 @@ <number>0</number> </property> <item> - <widget class="customToolButton" name="toolButton_userName"> + <widget class="statusToolButton" name="toolButton_userName"> <property name="text"> <string>toolbutton</string> </property> @@ -201,9 +201,9 @@ <container>1</container> </customwidget> <customwidget> - <class>customToolButton</class> + <class>statusToolButton</class> <extends>QToolButton</extends> - <header>customToolButton.h</header> + <header>statusToolButton.h</header> </customwidget> </customwidgets> <resources> |
