From feb359bb3b06f584838f880df35e9fbafef7c14f Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 24 Oct 2012 20:43:21 +0000 Subject: newtab slot works again git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@996 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'textedit.cpp') diff --git a/textedit.cpp b/textedit.cpp index 8753cd7..98d974f 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -38,8 +38,10 @@ TextEdit::TextEdit() connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(removeTab(int))); slotNewEditorPageTab(); setAcceptDrops(false); - QPushButton *newButton = new QPushButton("new",this); - tabWidget->setCornerWidget(newButton,Qt::TopRightCorner); + QPushButton *newButton = new QPushButton(QIcon(":button_plus.png"), ""); + tabWidget->setCornerWidget(newButton,Qt::TopLeftCorner); + connect(newButton, SIGNAL(clicked()), this, SLOT(slotNewEditorPageTab())); + } void TextEdit::slotNewEditorPageTab() -- cgit