[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:18:39 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=8f8acac
The following commit has been merged in the master branch:
commit 8f8acac6db020107a0b1f354cbd347f06d03a1e5
Author: Dominik Schmidt <dev at dominik-schmidt.de>
Date: Thu Feb 3 18:39:37 2011 +0100
Enable closing of tabs
---
app/mainwindow.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 54ac071..d215190 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -21,6 +21,7 @@
#include "chatwindow.h"
#include <KColorScheme>
+#include <KDebug>
#include <TelepathyQt4/ChannelClassSpecList>
#include <TelepathyQt4/TextChannel>
@@ -40,6 +41,11 @@ MainWindow::MainWindow()
{
setTabReorderingEnabled(true);
setDocumentMode(true);
+
+ setCloseButtonEnabled(true);
+ setHoverCloseButtonDelayed(true);
+ connect(this, SIGNAL(closeRequest(QWidget*)), SLOT(removePage(QWidget*)));
+
connect(this, SIGNAL(currentChanged(int)), SLOT(onCurrentIndexChanged(int)));
}
@@ -106,6 +112,12 @@ void MainWindow::updateTabIcon(const KIcon & newIcon)
void MainWindow::onCurrentIndexChanged(int index)
{
+ kDebug() << index;
+
+ if(index == -1) {
+ return;
+ }
+
ChatWindow* chat = qobject_cast<ChatWindow*>(widget(index));
setWindowTitle(chat->title());
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list