#include "toolbar.h"
#include <QMainWindow>
#include <QMenu>
#include <QPainter>
#include <QPainterPath>
#include <QSpinBox>
#include <stdlib.h>
Include dependency graph for toolbar.cpp:

Go to the source code of this file.
Functions | |
| static QPixmap | genIcon (const QSize &iconSize, const QString &, const QColor &color) |
| static QPixmap | genIcon (const QSize &iconSize, int number, const QColor &color) |
Definition at line 50 of file toolbar.cpp.
References genIcon(), and QString::number().
00051 { return genIcon(iconSize, QString::number(number), color); }
Here is the call graph for this function:

Definition at line 34 of file toolbar.cpp.
References Qt::DiffuseAlphaDither, Qt::DiffuseDither, QImage::Format_ARGB32_Premultiplied, QPixmap::fromImage(), h, QSize::height(), image, p, render_qt_text(), w, and QSize::width().
Referenced by genIcon(), and ToolBar::ToolBar().
00035 { 00036 int w = iconSize.width(); 00037 int h = iconSize.height(); 00038 00039 QImage image(w, h, QImage::Format_ARGB32_Premultiplied); 00040 image.fill(0); 00041 00042 QPainter p(&image); 00043 00044 extern void render_qt_text(QPainter *, int, int, const QColor &); 00045 render_qt_text(&p, w, h, color); 00046 00047 return QPixmap::fromImage(image, Qt::DiffuseDither | Qt::DiffuseAlphaDither); 00048 }
Here is the call graph for this function:

1.5.1