QTfrontend/ui/page/AbstractPage.cpp
changeset 6572 0d0af531c1c7
parent 6477 ad5741c252b9
child 6577 9e49e6a8585b
equal deleted inserted replaced
6571:da5cfded818b 6572:0d0af531c1c7
    23 
    23 
    24 #include "AbstractPage.h"
    24 #include "AbstractPage.h"
    25 #include <QLabel>
    25 #include <QLabel>
    26 #include <QSize>
    26 #include <QSize>
    27 #include <QFontMetricsF>
    27 #include <QFontMetricsF>
       
    28 #include <qpushbuttonwithsound.h>
       
    29 #include <QMessageBox>
    28 
    30 
    29 AbstractPage::AbstractPage(QWidget* parent)
    31 AbstractPage::AbstractPage(QWidget* parent)
    30 {
    32 {
    31     Q_UNUSED(parent);
    33     Q_UNUSED(parent);
    32     defautDesc = new QString();
    34     defautDesc = new QString();
    69     connectSignals();
    71     connectSignals();
    70 }
    72 }
    71 
    73 
    72 QPushButton * AbstractPage::formattedButton(const QString & name, bool hasIcon)
    74 QPushButton * AbstractPage::formattedButton(const QString & name, bool hasIcon)
    73 {
    75 {
    74     QPushButton * btn = new QPushButton(this);
    76     QPushButtonWithSound * btn = new QPushButtonWithSound(this);
    75 
    77 
    76     if (hasIcon)
    78     if (hasIcon)
    77     {
    79     {
    78         const QIcon& lp=QIcon(name);
    80         const QIcon& lp=QIcon(name);
    79         QSize sz = lp.actualSize(QSize(65535, 65535));
    81         QSize sz = lp.actualSize(QSize(65535, 65535));