更新代码
This commit is contained in:
@@ -3,26 +3,25 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
namespace Ui {
|
||||
class frmLightButton;
|
||||
}
|
||||
|
||||
class frmLightButton : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit frmLightButton(QWidget *parent = 0);
|
||||
~frmLightButton();
|
||||
explicit frmLightButton(QWidget *parent = 0);
|
||||
~frmLightButton();
|
||||
|
||||
private:
|
||||
Ui::frmLightButton *ui;
|
||||
int type;
|
||||
Ui::frmLightButton *ui;
|
||||
int type;
|
||||
|
||||
private slots:
|
||||
void initForm();
|
||||
void updateValue();
|
||||
void initForm();
|
||||
void updateValue();
|
||||
};
|
||||
|
||||
#endif // FRMLIGHTBUTTON_H
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>500</width>
|
||||
<height>300</height>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
||||
@@ -9,7 +9,7 @@ int main(int argc, char *argv[])
|
||||
QApplication a(argc, argv);
|
||||
a.setFont(QFont("Microsoft Yahei", 9));
|
||||
|
||||
#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5,0,0))
|
||||
#if _MSC_VER
|
||||
QTextCodec *codec = QTextCodec::codecForName("gbk");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user