Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/config/breezeexceptionlistwidget.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 42 | { | |||
---|---|---|---|---|---|
53 | m_ui.exceptionListView->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Ignored ) ); | 53 | m_ui.exceptionListView->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Ignored ) ); | ||
54 | 54 | | |||
55 | m_ui.moveUpButton->setIcon( QIcon::fromTheme( QStringLiteral( "arrow-up" ) ) ); | 55 | m_ui.moveUpButton->setIcon( QIcon::fromTheme( QStringLiteral( "arrow-up" ) ) ); | ||
56 | m_ui.moveDownButton->setIcon( QIcon::fromTheme( QStringLiteral( "arrow-down" ) ) ); | 56 | m_ui.moveDownButton->setIcon( QIcon::fromTheme( QStringLiteral( "arrow-down" ) ) ); | ||
57 | m_ui.addButton->setIcon( QIcon::fromTheme( QStringLiteral( "list-add" ) ) ); | 57 | m_ui.addButton->setIcon( QIcon::fromTheme( QStringLiteral( "list-add" ) ) ); | ||
58 | m_ui.removeButton->setIcon( QIcon::fromTheme( QStringLiteral( "list-remove" ) ) ); | 58 | m_ui.removeButton->setIcon( QIcon::fromTheme( QStringLiteral( "list-remove" ) ) ); | ||
59 | m_ui.editButton->setIcon( QIcon::fromTheme( QStringLiteral( "edit-rename" ) ) ); | 59 | m_ui.editButton->setIcon( QIcon::fromTheme( QStringLiteral( "edit-rename" ) ) ); | ||
60 | 60 | | |||
61 | connect( m_ui.addButton, SIGNAL(clicked()), SLOT(add()) ); | 61 | connect( m_ui.addButton, &QAbstractButton::clicked, this, &ExceptionListWidget::add ); | ||
62 | connect( m_ui.editButton, SIGNAL(clicked()), SLOT(edit()) ); | 62 | connect( m_ui.editButton, &QAbstractButton::clicked, this, &ExceptionListWidget::edit ); | ||
63 | connect( m_ui.removeButton, SIGNAL(clicked()), SLOT(remove()) ); | 63 | connect( m_ui.removeButton, &QAbstractButton::clicked, this, &ExceptionListWidget::remove ); | ||
64 | connect( m_ui.moveUpButton, SIGNAL(clicked()), SLOT(up()) ); | 64 | connect( m_ui.moveUpButton, &QAbstractButton::clicked, this, &ExceptionListWidget::up ); | ||
65 | connect( m_ui.moveDownButton, SIGNAL(clicked()), SLOT(down()) ); | 65 | connect( m_ui.moveDownButton, &QAbstractButton::clicked, this, &ExceptionListWidget::down ); | ||
66 | 66 | | |||
67 | connect( m_ui.exceptionListView, SIGNAL(activated(QModelIndex)), SLOT(edit()) ); | 67 | connect( m_ui.exceptionListView, &QAbstractItemView::activated, this, &ExceptionListWidget::edit ); | ||
68 | connect( m_ui.exceptionListView, SIGNAL(clicked(QModelIndex)), SLOT(toggle(QModelIndex)) ); | 68 | connect( m_ui.exceptionListView, &QAbstractItemView::clicked, this, &ExceptionListWidget::toggle ); | ||
69 | connect( m_ui.exceptionListView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(updateButtons()) ); | 69 | connect( m_ui.exceptionListView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &ExceptionListWidget::updateButtons ); | ||
70 | 70 | | |||
71 | updateButtons(); | 71 | updateButtons(); | ||
72 | resizeColumns(); | 72 | resizeColumns(); | ||
73 | 73 | | |||
74 | 74 | | |||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | //__________________________________________________________ | 77 | //__________________________________________________________ | ||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |