mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-30 18:17:26 +01:00
e337b7933b
- Fix includes - Use common regex (Song::kCoverRemoveDisc) for removing Disc/CD from album - Remove Disc/CD from album when creating hash - Make imobiledevice support compile - Fix setting device on windows
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
#ifndef QBUTTON_H
|
|
#define QBUTTON_H
|
|
|
|
#include <QWidget>
|
|
#include <QPointer>
|
|
#include <QString>
|
|
|
|
class QButtonPrivate;
|
|
class QButton : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
// Matches NSBezelStyle
|
|
enum BezelStyle {
|
|
Rounded = 1,
|
|
RegularSquare = 2,
|
|
Disclosure = 5,
|
|
ShadowlessSquare = 6,
|
|
Circular = 7,
|
|
TexturedSquare = 8,
|
|
HelpButton = 9,
|
|
SmallSquare = 10,
|
|
TexturedRounded = 11,
|
|
RoundRect = 12,
|
|
Recessed = 13,
|
|
RoundedDisclosure = 14,
|
|
#ifdef MAC_OS_X_VERSION_10_7
|
|
Inline = 15
|
|
#endif
|
|
};
|
|
|
|
explicit QButton(QWidget *parent, BezelStyle bezelStyle = Rounded);
|
|
|
|
public slots:
|
|
void setText(const QString &text);
|
|
void setImage(const QPixmap &image);
|
|
void setChecked(bool checked);
|
|
|
|
public:
|
|
void setCheckable(bool checkable);
|
|
bool isChecked();
|
|
|
|
signals:
|
|
void clicked(bool checked = false);
|
|
|
|
private:
|
|
friend class QButtonPrivate;
|
|
QPointer<QButtonPrivate> pimpl;
|
|
};
|
|
#endif // QBUTTON_H
|