summaryrefslogtreecommitdiffstats
path: root/src/komposetaskprefswidget.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-30 13:58:33 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-03-30 13:58:33 +0300
commit74b22318b8df6c1e9355b73a16bb755a5178b8d6 (patch)
tree538c9e62d606c6718fa64f8c8f2ad42e4aefc1ad /src/komposetaskprefswidget.cpp
downloadkompose-74b22318b8df6c1e9355b73a16bb755a5178b8d6.tar.gz
kompose-74b22318b8df6c1e9355b73a16bb755a5178b8d6.zip
Initial commit (KDE3 version)
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposetaskprefswidget.cpp')
-rw-r--r--src/komposetaskprefswidget.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/komposetaskprefswidget.cpp b/src/komposetaskprefswidget.cpp
new file mode 100644
index 0000000..9bb862b
--- /dev/null
+++ b/src/komposetaskprefswidget.cpp
@@ -0,0 +1,54 @@
+//
+// C++ Implementation: komposetaskprefswidget
+//
+// Description:
+//
+//
+// Author: Hans Oischinger <hans.oischinger@kde-mail.net>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#include "komposetaskprefswidget.h"
+
+#include "komposetaskwidget.h"
+#include "komposetask.h"
+#include "komposetaskprefswidget.h"
+#include "komposesettings.h"
+
+#include <ktoolbar.h>
+#include <ktoolbarbutton.h>
+#include <kactioncollection.h>
+#include <kaction.h>
+#include <kshortcut.h>
+#include <klocale.h>
+
+#include <qiconset.h>
+
+KomposeTaskPrefsWidget::KomposeTaskPrefsWidget(KomposeTaskWidget *parent, const char *name)
+ : QDockArea(Qt::Horizontal , QDockArea::Normal, parent, name)
+{
+ KToolBar* pToolBar = new KToolBar( this, i18n("Task Actions") );
+ pToolBar->setLabel(i18n("Task"));
+ pToolBar->setResizeEnabled ( false );
+ pToolBar->setMovingEnabled ( false );
+ pToolBar->setHorizontallyStretchable ( false );
+ pToolBar->setVerticallyStretchable ( false );
+ pToolBar->setIconSize( 16 );
+
+ parent->getActMinimizeRestoreTask()->plug(pToolBar);
+ parent->getActCloseTask()->plug(pToolBar);
+
+ lineUp(false);
+
+ resize(pToolBar->size());
+}
+
+
+KomposeTaskPrefsWidget::~KomposeTaskPrefsWidget()
+{
+}
+
+
+
+#include "komposetaskprefswidget.moc"