Quark  0.1
UiUtils.h++
Go to the documentation of this file.
1 #ifndef __libquark_gui_UiUtils_hxx
2 #define __libquark_gui_UiUtils_hxx
3 
4 #include <QAbstractButton>
5 #include <QIcon>
6 #include <QPoint>
7 #include <QWidget>
8 
9 #include <quark/Quark.h++>
10 
11 namespace quark {
12 namespace gui {
13 
20 {
21  public:
22 
30  static void centerWidget(QWidget *widget, QWidget *other = NULL);
31 
41  static QPoint cascadeWidget(QWidget *widget, const QPoint &from, int offset);
42 
48  static void appendShortcutToTooltip(QAbstractButton *button);
49 
57  static QIcon makeColorSwatch(const QColor &color, const QSize &size);
58 
59  private:
60 
61  UiUtils();
62 
63  Q_DISABLE_COPY(UiUtils);
64 };
65 
66 } // namespace gui
67 } // namespace quark
68 
69 #endif // __libquark_gui_UiUtils_hxx
70 
Definition: BarChartView.h++:6
A collection of UI-specific utility functions.
Definition: UiUtils.h++:19
#define LIBQUARK_API
Definition: Quark.h++:18