Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konsole / src / WarningBox.h
blob5b0ec50634ef6310f04a1761dc880520da1ae588
1 /*
2 Copyright 2008 by Robert Knight <robertknight@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program 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
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301 USA.
20 #ifndef WARNINGBOX_H
21 #define WARNINGBOX_H
23 // Qt
24 #include <QFrame>
26 class QLabel;
28 namespace Konsole
31 /**
32 * A label which displays a warning message,
33 * using the appropriate icon from the current icon theme
34 * and background color from KColorScheme
36 class WarningBox : public QFrame
38 Q_OBJECT
40 public:
41 WarningBox(QWidget* parent = 0);
43 /** Sets the text displayed in the warning label. */
44 void setText(const QString& text);
45 /** Returns the text displayed in the warning label. */
46 QString text() const;
48 private:
49 QLabel* _label;
54 #endif // WARNINGBOX_H