~ubuntu-branches/ubuntu/karmic/kleansweep/karmic

« back to all changes in this revision

Viewing changes to src/scanprogressdlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-01-20 11:26:41 UTC
  • Revision ID: james.westby@ubuntu.com-20060120112641-xd1rmv568k0vvz3u
Tags: upstream-0.2.5
ImportĀ upstreamĀ versionĀ 0.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is a part of KleanSweep.
 
3
 *
 
4
 * Copyright (C) 2005 Pawel Stolowski <pawel.stolowski@wp.pl>
 
5
 *
 
6
 * KleanSweep is free software; you can redestribute it and/or modify it
 
7
 * under terms of GNU General Public License by Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY. See GPL for more details.
 
11
 */
 
12
 
 
13
#include "scanprogressdlg.h"
 
14
#include <qlabel.h>
 
15
#include <qlayout.h>
 
16
#include <qframe.h>
 
17
 
 
18
ScanProgressDialog::ScanProgressDialog(QWidget *parent): QDialog(parent, 0, false, Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WDestructiveClose)
 
19
{
 
20
        QHBoxLayout *lay0 = new QHBoxLayout(this);
 
21
        lpath = new QLabel(this);
 
22
        lpath->setAlignment(Qt::AlignLeft);
 
23
        lpath->setTextFormat(Qt::PlainText);
 
24
        lpath->setMargin(8);
 
25
        lpath->setFixedWidth(420);
 
26
        lpath->setFrameStyle(QFrame::WinPanel | QFrame::Raised);
 
27
        lpath->setLineWidth(2);
 
28
        lpath->setMidLineWidth(2);
 
29
        lay0->addWidget(lpath);
 
30
}
 
31
 
 
32
ScanProgressDialog::~ScanProgressDialog()
 
33
{
 
34
}
 
35
                
 
36
void ScanProgressDialog::setCurrentPath(const QString &path)
 
37
{
 
38
        lpath->setText(path);
 
39
}
 
40
 
 
41
#include "scanprogressdlg.moc"