Konsole
WarningBox.h
Go to the documentation of this file.00001 /* 00002 Copyright 2008 by Robert Knight <robertknight@gmail.com> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301 USA. 00018 */ 00019 00020 #ifndef WARNINGBOX_H 00021 #define WARNINGBOX_H 00022 00023 // Qt 00024 #include <QFrame> 00025 00026 class QLabel; 00027 00028 namespace Konsole 00029 { 00030 00036 class WarningBox : public QFrame 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 WarningBox(QWidget* parent = 0); 00042 00044 void setText(const QString& text); 00046 QString text() const; 00047 00048 private: 00049 QLabel* _label; 00050 }; 00051 00052 } 00053 00054 #endif // WARNINGBOX_H 00055 00056