Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kavailablecurrencydlg.cpp
Context not available. | |||||
45 | m_searchWidget = new KTreeWidgetSearchLineWidget(this, ui->m_currencyList); | 45 | m_searchWidget = new KTreeWidgetSearchLineWidget(this, ui->m_currencyList); | ||
---|---|---|---|---|---|
46 | m_searchWidget->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)); | 46 | m_searchWidget->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)); | ||
47 | ui->verticalLayout->insertWidget(0, m_searchWidget); | 47 | ui->verticalLayout->insertWidget(0, m_searchWidget); | ||
48 | connect(ui->m_currencyList, SIGNAL(itemSelectionChanged()), this, SLOT(slotItemSelectionChanged())); | 48 | connect(ui->m_currencyList, &QTreeWidget::itemSelectionChanged, this, &KAvailableCurrencyDlg::slotItemSelectionChanged); | ||
49 | 49 | | |||
50 | slotLoadCurrencies(); | 50 | slotLoadCurrencies(); | ||
51 | 51 | | |||
52 | //resize the column widths | 52 | //resize the column widths | ||
53 | for (int i = 0; i < 3; ++i) | 53 | for (auto i = 0; i < 3; ++i) | ||
54 | ui->m_currencyList->resizeColumnToContents(i); | 54 | ui->m_currencyList->resizeColumnToContents(i); | ||
55 | 55 | | |||
56 | m_searchWidget->setFocus(); | 56 | m_searchWidget->setFocus(); | ||
Context not available. |