mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00
74 lines
1.7 KiB
C++
74 lines
1.7 KiB
C++
/** ===========================================================
|
|
* @file
|
|
*
|
|
* This file is a part of digiKam project
|
|
* <a href="http://www.digikam.org">http://www.digikam.org</a>
|
|
*
|
|
* @date 2009-07-15
|
|
* @brief a text edit widget with click message.
|
|
*
|
|
* @author Copyright (C) 2009-2012 by Gilles Caulier
|
|
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
|
|
*
|
|
* This program is free software; you can redistribute it
|
|
* and/or modify it under the terms of the GNU General
|
|
* Public License as published by the Free Software Foundation;
|
|
* either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* ============================================================ */
|
|
|
|
#ifndef MSGTEXTEDIT_H
|
|
#define MSGTEXTEDIT_H
|
|
|
|
// Qt includes
|
|
|
|
#include <QtGui/QWidget>
|
|
#include <QtCore/QString>
|
|
|
|
// KDE includes
|
|
|
|
#include <ktextedit.h>
|
|
|
|
// Local includes
|
|
|
|
#include "kexiv2_export.h"
|
|
|
|
namespace KExiv2Iface
|
|
{
|
|
|
|
class KEXIV2_EXPORT MsgTextEdit : public KTextEdit
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
MsgTextEdit(QWidget* parent);
|
|
~MsgTextEdit();
|
|
|
|
void setClickMessage(const QString& msg);
|
|
QString clickMessage() const;
|
|
|
|
void setText(const QString& txt);
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent*);
|
|
void dropEvent(QDropEvent*);
|
|
void focusInEvent(QFocusEvent*);
|
|
void focusOutEvent(QFocusEvent*);
|
|
|
|
private:
|
|
|
|
class Private;
|
|
Private* const d;
|
|
};
|
|
|
|
} // namespace KExiv2Iface
|
|
|
|
#endif /* MSGTEXTEDIT_H */
|