qtDescriptivePhraseEditor.h 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================

#ifndef __smtk_extension_qtDescriptivePhraseEditor_h
#define __smtk_extension_qtDescriptivePhraseEditor_h

#include "smtk/extension/qt/Exports.h"
#include <QWidget>

class QLineEdit;

namespace smtk
{
namespace extension
{

24
/**\brief Allow user edits to an smtk::model::Resource instance via qtDescriptivePhraseModel.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
  *
  */
class SMTKQTEXT_EXPORT qtDescriptivePhraseEditor : public QWidget
{
  Q_OBJECT
public:
  qtDescriptivePhraseEditor(QWidget* parent = 0);
  ~qtDescriptivePhraseEditor() override;

  //QSize sizeHint() const;
  QString title() const;
  void setTitle(const QString& text);

signals:
  void editingFinished();

protected:
  QLineEdit* m_title;
};

} // namespace model
} // namespace smtk

#endif // __smtk_extension_qtDescriptivePhraseEditor_h