diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-21 23:24:46 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-21 23:24:46 +0000 |
commit | f8fe7d5ba330e18321f94044f0f95fd0cd61ac03 (patch) | |
tree | aa7b55496ec15d74e330e227740111c07c01989c | |
parent | even more beautifying and added F3 as key for find next (diff) | |
download | gpg4usb-f8fe7d5ba330e18321f94044f0f95fd0cd61ac03.tar.gz gpg4usb-f8fe7d5ba330e18321f94044f0f95fd0cd61ac03.zip |
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
-rw-r--r-- | textedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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() |