• 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
KDE statusbar widget
Definition: kstatusbar.h:60
KStatusBar::released
void released(int)
Emitted when mouse is released over item id.
KStatusBar::pressed
void pressed(int)
Emitted when mouse is pressed over item id.
QObject
QStatusBar
QWidget
kdeui_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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
  • Modules
  • 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