Changeset View
Changeset View
Standalone View
Standalone View
scan/sanedialog.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 39 | { | |||
---|---|---|---|---|---|
42 | 42 | | |||
43 | buttonBox()->setStandardButtons(QDialogButtonBox::Close); | 43 | buttonBox()->setStandardButtons(QDialogButtonBox::Close); | ||
44 | buttonBox()->button(QDialogButtonBox::Close)->setDefault(true); | 44 | buttonBox()->button(QDialogButtonBox::Close)->setDefault(true); | ||
45 | 45 | | |||
46 | 46 | | |||
47 | m_ksanew = new KSaneIface::KSaneWidget(this); | 47 | m_ksanew = new KSaneIface::KSaneWidget(this); | ||
48 | addPage(m_ksanew, QString()); | 48 | addPage(m_ksanew, QString()); | ||
49 | 49 | | |||
50 | connect(m_ksanew, SIGNAL(imageReady(QByteArray&,int,int,int,int)), | 50 | connect (m_ksanew, &KSaneIface::KSaneWidget::imageReady, | ||
51 | this, SLOT(imageReady(QByteArray&,int,int,int,int))); | 51 | this, &SaneDialog::imageReady); | ||
52 | 52 | | |||
53 | m_openDev = QString(); | 53 | m_openDev = QString(); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | bool SaneDialog::setup() | 56 | bool SaneDialog::setup() | ||
57 | { | 57 | { | ||
58 | if(!m_ksanew) { | 58 | if(!m_ksanew) { | ||
59 | // new failed | 59 | // new failed | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |