微调sane设置界面
This commit is contained in:
parent
21dd43d92e
commit
a2b937031a
|
@ -293,8 +293,6 @@ void hg_settingdialog::createUI()
|
|||
|
||||
QPushButton *buttonAbout = new QPushButton(this);
|
||||
buttonAbout->setText(tr("about..."));
|
||||
QPushButton *buttonScan = new QPushButton(this);
|
||||
buttonScan->setText(tr("scan"));
|
||||
QPushButton *buttonOk = new QPushButton(this);
|
||||
buttonOk->setText(tr("ok"));
|
||||
QPushButton *buttonCancel = new QPushButton(this);
|
||||
|
@ -302,25 +300,14 @@ void hg_settingdialog::createUI()
|
|||
QHBoxLayout *hlayoutOkAndCancel = new QHBoxLayout;
|
||||
hlayoutOkAndCancel->addStretch();
|
||||
hlayoutOkAndCancel->addWidget(buttonAbout);
|
||||
hlayoutOkAndCancel->addWidget(buttonScan);
|
||||
hlayoutOkAndCancel->addWidget(buttonOk);
|
||||
hlayoutOkAndCancel->addWidget(buttonCancel);
|
||||
QWidget *widgetOkAndCancel = new QWidget();
|
||||
widgetOkAndCancel->setLayout(hlayoutOkAndCancel);
|
||||
connect(buttonAbout, SIGNAL(clicked(bool)), this, SLOT(slot_buttonAboutClicked()));
|
||||
connect(buttonScan, SIGNAL(clicked(bool)), this, SLOT(slot_buttonScanClicked()));
|
||||
connect(buttonOk, SIGNAL(clicked(bool)), this, SLOT(slot_buttonOkClicked()));
|
||||
connect(buttonCancel, SIGNAL(clicked(bool)), this, SLOT(slot_buttonCancelClicked()));
|
||||
|
||||
if (!m_showScan)
|
||||
{
|
||||
buttonScan->setVisible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
buttonOk->setVisible(false);
|
||||
}
|
||||
|
||||
QHBoxLayout *h = new QHBoxLayout();
|
||||
QVBoxLayout *v1 = new QVBoxLayout(),
|
||||
*v2 = new QVBoxLayout();
|
||||
|
@ -1509,11 +1496,6 @@ void hg_settingdialog::slot_buttonAboutClicked()
|
|||
msg.exec();
|
||||
}
|
||||
|
||||
void hg_settingdialog::slot_buttonScanClicked()
|
||||
{
|
||||
save_scheme();
|
||||
}
|
||||
|
||||
void hg_settingdialog::slot_buttonOkClicked()
|
||||
{
|
||||
save_ = true;
|
||||
|
|
|
@ -62,7 +62,6 @@ private:
|
|||
static hg_settingdialog *hg_setting_ui_;
|
||||
SANEAPI m_saneAPI;
|
||||
SANE_Handle m_devHandle;
|
||||
bool m_showScan;
|
||||
std::string m_devName;
|
||||
QTranslator m_translator;
|
||||
QTranslator m_translator_qt;
|
||||
|
@ -106,7 +105,6 @@ private slots:
|
|||
void slot_word_list_comboBoxClicked(int value);
|
||||
void slot_lineEditInput();
|
||||
void slot_buttonAboutClicked();
|
||||
void slot_buttonScanClicked();
|
||||
void slot_buttonOkClicked();
|
||||
void slot_buttonCancelClicked();
|
||||
void slot_pushButton_scheme_management(void);
|
||||
|
|
Loading…
Reference in New Issue