~ubuntu-branches/ubuntu/natty/kdebase-workspace/natty-proposed

« back to all changes in this revision

Viewing changes to krunner/ksystemactivitydialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2011-04-03 16:54:55 UTC
  • mfrom: (1.1.55 upstream)
  • Revision ID: james.westby@ubuntu.com-20110403165455-8tnwxt82p21p15hh
Tags: 4:4.6.2a-0ubuntu1
* New upstream release
  - Update kde-sc-dev-latest version
  - Update kdebase-workspace-wallpapers.install,
    kde-window-manager.install and not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <QLineEdit>
26
26
#include <QLayout>
27
27
#include <QString>
 
28
#include <QAction>
28
29
#include <QTreeView>
29
30
 
30
31
#include <KConfigGroup>
46
47
    layout()->setContentsMargins(0,0,0,0);
47
48
    m_processList.treeView()->setCornerWidget(new QWidget);
48
49
 
 
50
    // Since we kinda act like an application more than just a Window, map the usual ctrl+Q shortcut to close as well
 
51
    QAction *closeWindow = new QAction(this);
 
52
    closeWindow->setShortcut(QKeySequence::Quit);
 
53
    connect(closeWindow, SIGNAL(triggered(bool)), this, SLOT(accept()));
 
54
    addAction(closeWindow);
 
55
 
49
56
    setInitialSize(QSize(650, 420));
50
57
    KConfigGroup cg = KGlobal::config()->group("TaskDialog");
51
58
    restoreDialogSize(cg);