~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/ksysguard/lsofui/LsofSearchWidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
 
 
4
        Copyright (c) 1999 Chris Schlaeger <cs@kde.org>
 
5
        Copyright (c) 2007 John Tapsell <tapsell@kde.org>
 
6
 
 
7
    This library is free software; you can redistribute it and/or
 
8
    modify it under the terms of the GNU Library General Public
 
9
    License as published by the Free Software Foundation; either
 
10
    version 2 of the License, or (at your option) any later version.
 
11
 
 
12
    This library is distributed in the hope that it will be useful,
 
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
    Library General Public License for more details.
 
16
 
 
17
    You should have received a copy of the GNU Library General Public License
 
18
    along with this library; see the file COPYING.LIB.  If not, write to
 
19
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
20
    Boston, MA 02110-1301, USA.
 
21
 
 
22
 
 
23
*/
 
24
 
 
25
#include <klocale.h>
 
26
#include <kdebug.h>
 
27
 
 
28
#include "LsofSearchWidget.moc"
 
29
#include "ui_LsofSearchWidget.h"
 
30
 
 
31
LsofSearchWidget::LsofSearchWidget(QWidget* parent, int pid )
 
32
        : KDialog( parent )
 
33
{
 
34
        setObjectName( "Renice Dialog" );
 
35
        setModal( true );
 
36
        setCaption( i18n("Renice Process") );
 
37
        setButtons( Close );
 
38
        QWidget *widget = new QWidget(this);
 
39
        setMainWidget(widget);
 
40
        ui = new Ui_LsofSearchWidget();
 
41
        ui->setupUi(widget);
 
42
        ui->klsofwidget->setPid(pid);
 
43
        ktreewidgetsearchline
 
44
}
 
45