From f8fe7d5ba330e18321f94044f0f95fd0cd61ac03 Mon Sep 17 00:00:00 2001 From: nils Date: Fri, 21 Sep 2012 23:24:46 +0000 Subject: added button to tabbar of textedit to add tab (but has still has to be styled) git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@965 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/textedit.cpp b/textedit.cpp index 39039f2..61de5fe 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -38,6 +38,8 @@ TextEdit::TextEdit() connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(removeTab(int))); newTab(); setAcceptDrops(false); + QPushButton *newButton = new QPushButton("new",this); + tabWidget->setCornerWidget(newButton,Qt::TopRightCorner); } void TextEdit::newTab() -- cgit v1.2.3