Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Harry Jeffery
committed
Oct 22, 2014
1 parent
153e096
commit e82ebfd
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/ReflOptionsDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef MANTID_CUSTOMINTERFACES_REFLOPTIONSDELEGATE_H | ||
#define MANTID_CUSTOMINTERFACES_REFLOPTIONSDELEGATE_H | ||
|
||
#include <QStyledItemDelegate> | ||
|
||
namespace MantidQt | ||
{ | ||
namespace CustomInterfaces | ||
{ | ||
class ReflOptionsDelegate : public QStyledItemDelegate | ||
{ | ||
public: | ||
ReflOptionsDelegate() {}; | ||
virtual ~ReflOptionsDelegate() {}; | ||
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const | ||
{ | ||
Q_UNUSED(option); | ||
Q_UNUSED(index); | ||
return new QLineEdit(parent); | ||
} | ||
}; | ||
} | ||
} | ||
|
||
#endif /* MANTID_CUSTOMINTERFACES_REFLOPTIONSDELEGATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters