QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.plasma", "/Previewer", "", "openFile");
foreach (const KUrl& url, urls) {
- QList<QVariant> args;
msg.setArguments(QList<QVariant>() << url.prettyUrl());
QDBusConnection::sessionBus().send(msg);
}
if (index == m_tabIndex) {
// The tab that should be closed is the active tab. Activate the
// previous tab before closing the tab.
- setActiveTab((index > 0) ? index - 1 : 1);
+ m_tabBar->setCurrentIndex((index > 0) ? index - 1 : 1);
}
// delete tab