Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/config/breezedetectwidget.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
47 | //_________________________________________________________ | 47 | //_________________________________________________________ | ||
48 | DetectDialog::DetectDialog( QWidget* parent ): | 48 | DetectDialog::DetectDialog( QWidget* parent ): | ||
49 | QDialog( parent ) | 49 | QDialog( parent ) | ||
50 | { | 50 | { | ||
51 | 51 | | |||
52 | // setup | 52 | // setup | ||
53 | m_ui.setupUi( this ); | 53 | m_ui.setupUi( this ); | ||
54 | 54 | | |||
55 | connect( m_ui.buttonBox->button( QDialogButtonBox::Cancel ), SIGNAL(clicked()), this, SLOT(close()) ); | 55 | connect( m_ui.buttonBox->button( QDialogButtonBox::Cancel ), &QAbstractButton::clicked, this, &QWidget::close ); | ||
56 | m_ui.windowClassCheckBox->setChecked( true ); | 56 | m_ui.windowClassCheckBox->setChecked( true ); | ||
57 | 57 | | |||
58 | #if BREEZE_HAVE_X11 | 58 | #if BREEZE_HAVE_X11 | ||
59 | if (QX11Info::isPlatformX11()) { | 59 | if (QX11Info::isPlatformX11()) { | ||
60 | // create atom | 60 | // create atom | ||
61 | xcb_connection_t* connection( QX11Info::connection() ); | 61 | xcb_connection_t* connection( QX11Info::connection() ); | ||
62 | const QString atomName( QStringLiteral( "WM_STATE" ) ); | 62 | const QString atomName( QStringLiteral( "WM_STATE" ) ); | ||
63 | xcb_intern_atom_cookie_t cookie( xcb_intern_atom( connection, false, atomName.size(), qPrintable( atomName ) ) ); | 63 | xcb_intern_atom_cookie_t cookie( xcb_intern_atom( connection, false, atomName.size(), qPrintable( atomName ) ) ); | ||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |