• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • widgets
kstatusbar.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 1997 Mark Donohoe (donohoe@kde.org)
3 Copyright (C) 1997, 1998 1998 Sven Radej (sven@lisa.exp.univie.ac.at)
4 Copyright (C) 2007 Aron Boström (aron.bostrom@gmail.com)
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KSTATUSBAR_H
23#define KSTATUSBAR_H
24
25#include <kdeui_export.h>
26#include <QtGui/QStatusBar>
27
28class QObject;
29class QEvent;
30class KStatusBarPrivate;
31
59class KDEUI_EXPORT KStatusBar : public QStatusBar
60{
61 Q_OBJECT
62
63public:
67 explicit KStatusBar( QWidget* parent = 0 );
68
74 ~KStatusBar();
75
87 void insertItem(const QString& text, int id, int stretch=0 );
88
100 void insertPermanentItem(const QString& text, int id, int stretch=0 );
101
110 void insertFixedItem(const QString& text, int id);
111
120 void insertPermanentFixedItem(const QString& text, int id);
121
127 void removeItem( int id );
128
135 bool hasItem( int id ) const;
136
140 QString itemText( int id ) const;
141
151 void changeItem( const QString& text, int id );
152
158 void setItemAlignment(int id, Qt::Alignment alignment);
159
167 void setItemFixed(int id, int width=-1);
168
169Q_SIGNALS:
170
177 void pressed( int );
178
184 void released( int );
185
186protected:
187 bool eventFilter(QObject* object, QEvent *event);
188
189private:
190 KStatusBarPrivate* const d;
191};
192
193#endif // KSTATUSBAR_H
194
KStatusBar::insertItem
void insertItem(const QString &text, int id, int stretch=0)
Inserts a temporary text label into the status bar.
Definition kstatusbar.cpp:94
KStatusBar::removeItem
void removeItem(int id)
Removes an item.
Definition kstatusbar.cpp:137
KStatusBar::hasItem
bool hasItem(int id) const
Returns true if an item with id exists already in KStatusBar, otherwise returns false.
Definition kstatusbar.cpp:149
KStatusBar::insertPermanentItem
void insertPermanentItem(const QString &text, int id, int stretch=0)
Inserts a permanent text label into the status bar.
Definition kstatusbar.cpp:116
KStatusBar::insertFixedItem
void insertFixedItem(const QString &text, int id)
Inserts a fixed width temporary text label into status bar.
Definition kstatusbar.cpp:109
KStatusBar::setItemAlignment
void setItemAlignment(int id, Qt::Alignment alignment)
Sets the alignment of item id.
Definition kstatusbar.cpp:180
KStatusBar::released
void released(int)
Emitted when mouse is released over item id.
KStatusBar::KStatusBar
KStatusBar(QWidget *parent=0)
Constructs a status bar.
Definition kstatusbar.cpp:72
KStatusBar::eventFilter
bool eventFilter(QObject *object, QEvent *event)
Definition kstatusbar.cpp:53
KStatusBar::itemText
QString itemText(int id) const
The text of an item, if it exists.
Definition kstatusbar.cpp:154
KStatusBar::setItemFixed
void setItemFixed(int id, int width=-1)
Sets item id to have fixed width.
Definition kstatusbar.cpp:190
KStatusBar::pressed
void pressed(int)
Emitted when mouse is pressed over item id.
KStatusBar::changeItem
void changeItem(const QString &text, int id)
Changes the text in a status bar field.
Definition kstatusbar.cpp:163
KStatusBar::insertPermanentFixedItem
void insertPermanentFixedItem(const QString &text, int id)
Inserts a fixed width permanent text label into status bar.
Definition kstatusbar.cpp:131
QObject
QStatusBar
QWidget
kdeui_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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