Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9d396caf authored by Laurent Montel's avatar Laurent Montel 😁

Adapt to new connect api. Fix install notifier

parent 4e8c7564
install(FILES kget.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kget)
install(FILES kget.notifyrc
DESTINATION ${KNOTIFYRC_INSTALL_DIR}
)
#install(FILES
# KGet_Added.ogg
......
add_subdirectory(icons)
add_subdirectory(pics)
install(FILES kgetui.rc DESTINATION ${DATA_INSTALL_DIR}/kget)
install(FILES kgetui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kget)
......@@ -56,14 +56,14 @@ SignatureDlg::SignatureDlg(TransferHandler *transfer, const QUrl &dest, QWidget
ui.information->setCloseButtonVisible(false);
ui.information->setWordWrap(true);
if (m_signature) {
connect(ui.loadSignature, SIGNAL(clicked(bool)), this, SLOT(loadSignatureClicked()));
connect(ui.verify, SIGNAL(clicked()), this, SLOT(verifyClicked()));
connect(ui.signature, SIGNAL(textChanged()), this, SLOT(textChanged()));
connect(m_signature, SIGNAL(verified(int)), this, SLOT(updateData()));
connect(ui.loadSignature, &QPushButton::clicked, this, &SignatureDlg::loadSignatureClicked);
connect(ui.verify, &QPushButton::clicked, this, &SignatureDlg::verifyClicked);
connect(ui.signature, &KTextEdit::textChanged, this, &SignatureDlg::textChanged);
connect(m_signature, &Signature::verified, this, &SignatureDlg::updateData);
if (m_fileModel) {
m_file = m_fileModel->index(dest, FileItem::File);
connect(m_fileModel, SIGNAL(fileFinished(KUrl)), this, SLOT(fileFinished(KUrl)));
connect(m_fileModel, &FileModel::fileFinished, this, &SignatureDlg::fileFinished);
}
updateData();
......
......@@ -54,10 +54,8 @@ TransfersView::TransfersView(QWidget * parent)
connect(header(), SIGNAL(sectionCountChanged(int,int)), this, SLOT(populateHeaderActions()));
connect(header(), SIGNAL(sectionMoved(int,int,int)), this, SLOT(slotSectionMoved(int,int,int)));
connect(header(), SIGNAL(sectionResized(int,int,int)), this, SLOT(slotSaveHeader()));
connect(this, SIGNAL(doubleClicked(QModelIndex)),
this, SLOT(slotItemActivated(QModelIndex)));
connect(this, SIGNAL(collapsed(QModelIndex)),
this, SLOT(slotItemCollapsed(QModelIndex)));
connect(this, &TransfersView::doubleClicked, this, &TransfersView::slotItemActivated);
connect(this, &TransfersView::collapsed, this, &TransfersView::slotItemCollapsed);
connect(KGet::model(), SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
this, SLOT(closeExpandableDetails(QModelIndex,int,int)));
}
......@@ -127,7 +125,7 @@ void TransfersView::populateHeaderActions()
m_headerMenu->addSection(i18n("Select columns"));
QSignalMapper *columnMapper = new QSignalMapper(this);
connect(columnMapper, SIGNAL(mapped(int)), SLOT(slotHideSection(int)));
connect(columnMapper, static_cast<void (QSignalMapper::*)(int)>(&QSignalMapper::mapped), this, &TransfersView::slotHideSection);
//Create for each column an action with the column-header as name
QVector<QAction *> orderedMenuItems(header()->count());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment