• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • calligra API Reference
  • KDE Home
  • Contact Us
 

KoWidgetUtils

  • sources
  • kfour-appscomplete
  • calligra
  • libs
  • widgetutils
KoProgressBar.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  * Copyright (C) Boudewijn Rempt <[email protected]>, (C) 2007
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #include "KoProgressBar.h"
21 
22 KoProgressBar::KoProgressBar(QWidget *parent)
23  : QProgressBar(parent)
24 {
25 }
26 
27 KoProgressBar::~KoProgressBar()
28 {
29 }
30 
31 int KoProgressBar::maximum() const
32 {
33  return QProgressBar::maximum();
34 }
35 
36 void KoProgressBar::setValue(int value)
37 {
38  QProgressBar::setValue(value);
39 
40  if (value >= minimum() && value < maximum()) {
41  setVisible( true );
42  } else {
43  emit done();
44  setVisible( false );
45  }
46 }
47 
48 void KoProgressBar::setRange(int minimum, int maximum)
49 {
50  QProgressBar::setRange(minimum, maximum);
51 }
52 
53 void KoProgressBar::setFormat(const QString &format)
54 {
55  QProgressBar::setFormat(format);
56 }
KoProgressBar::done
void done()
QWidget
KoProgressBar::setValue
void setValue(int value) override
Definition: KoProgressBar.cpp:36
QWidget::setVisible
virtual void setVisible(bool visible)
KoProgressBar::setFormat
void setFormat(const QString &format) override
Definition: KoProgressBar.cpp:53
QString
QProgressBar::maximum
int maximum() const
KoProgressBar::maximum
int maximum() const override
Definition: KoProgressBar.cpp:31
KoProgressBar::KoProgressBar
KoProgressBar(QWidget *parent=0)
Definition: KoProgressBar.cpp:22
QProgressBar::minimum
int minimum() const
KoProgressBar.h
KoProgressBar::~KoProgressBar
~KoProgressBar() override
Definition: KoProgressBar.cpp:27
QProgressBar::setRange
void setRange(int minimum, int maximum)
KoProgressBar::setRange
void setRange(int minimum, int maximum) override
Definition: KoProgressBar.cpp:48
QProgressBar::setValue
void setValue(int value)
QProgressBar
QProgressBar::setFormat
void setFormat(const QString &format)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Apr 22 2021 23:25:41 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KoWidgetUtils

Skip menu "KoWidgetUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

calligra API Reference

Skip menu "calligra API Reference"
  • Braindump
  • filters
  •   MSO
  •   KoMSOOXML
  •   KoOdf2
  •   KoOdfReader
  • Karbon
  • libs
  •   BasicFlakes
  •   Flake
  •   KoKross
  •   KUndo2
  •   KoMain
  •   KoOdf
  •   KoPageApp
  •   Pigment
  •   KoPlugin
  •   KoRdf
  •   KoStore
  •   KoText
  •   KoTextLayout
  •   KoVectorImage
  •   KoWidgets
  •   KoWidgetUtils
  • plugins
  •   formulashape
  •   musicshape
  • Sheets
  • Stage
  • Words
  •   part
  •     scripting

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal