Changeset View
Changeset View
Standalone View
Standalone View
solid-device-automounter/kcm/DeviceAutomounterKCM.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
52 | about->addAuthor(i18n("Kai Uwe Broulik"), i18n("Plasma 5 Port"), QStringLiteral("kde@privat.broulik.de")); | 52 | about->addAuthor(i18n("Kai Uwe Broulik"), i18n("Plasma 5 Port"), QStringLiteral("kde@privat.broulik.de")); | ||
53 | 53 | | |||
54 | setAboutData(about); | 54 | setAboutData(about); | ||
55 | setupUi(this); | 55 | setupUi(this); | ||
56 | 56 | | |||
57 | m_devices = new DeviceModel(this); | 57 | m_devices = new DeviceModel(this); | ||
58 | deviceView->setModel(m_devices); | 58 | deviceView->setModel(m_devices); | ||
59 | 59 | | |||
60 | deviceView->header()->setSectionResizeMode(QHeaderView::ResizeToContents); | ||||
61 | deviceView->header()->setSectionResizeMode(0, QHeaderView::Stretch); | ||||
62 | | ||||
60 | auto emitChanged = [this] { | 63 | auto emitChanged = [this] { | ||
61 | emit changed(); | 64 | emit changed(); | ||
62 | }; | 65 | }; | ||
63 | 66 | | |||
64 | connect(automountOnLogin, &QCheckBox::stateChanged, this, emitChanged); | 67 | connect(automountOnLogin, &QCheckBox::stateChanged, this, emitChanged); | ||
65 | connect(automountOnPlugin, &QCheckBox::stateChanged, this, emitChanged); | 68 | connect(automountOnPlugin, &QCheckBox::stateChanged, this, emitChanged); | ||
66 | connect(automountEnabled, &QCheckBox::stateChanged, this, emitChanged); | 69 | connect(automountEnabled, &QCheckBox::stateChanged, this, emitChanged); | ||
67 | connect(automountUnknownDevices, &QCheckBox::stateChanged, this, emitChanged); | 70 | connect(automountUnknownDevices, &QCheckBox::stateChanged, this, emitChanged); | ||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |