mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-30 21:15:35 +00:00
23 lines
353 B
C
23 lines
353 B
C
|
#pragma once
|
||
|
|
||
|
#include <QPushButton>
|
||
|
#include <QToolButton>
|
||
|
|
||
|
class QLabel;
|
||
|
|
||
|
class LabeledToolButton : public QToolButton
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
QLabel * m_label;
|
||
|
|
||
|
public:
|
||
|
LabeledToolButton(QWidget * parent = 0);
|
||
|
|
||
|
QString text() const;
|
||
|
void setText(const QString & text);
|
||
|
virtual QSize sizeHint() const;
|
||
|
protected:
|
||
|
void resizeEvent(QResizeEvent * event);
|
||
|
};
|