StoredViewDialog_p.hpp   StoredViewDialog_p.hpp 
skipping to change at line 35 skipping to change at line 35
#include <QDebug> #include <QDebug>
#include <QTextEdit> #include <QTextEdit>
#include <QAbstractListModel> #include <QAbstractListModel>
//! A custom QTextEdit subclass that has an editingFinished() signal like Q LineEdit. //! A custom QTextEdit subclass that has an editingFinished() signal like Q LineEdit.
class CustomTextEdit : public QTextEdit class CustomTextEdit : public QTextEdit
{ {
Q_OBJECT Q_OBJECT
public: public:
CustomTextEdit(QWidget* parent = NULL) : QTextEdit(parent), textChan ged(false), trackChange(false) CustomTextEdit(QWidget* parent = Q_NULLPTR) : QTextEdit(parent), tex tChanged(false), trackChange(false)
{ {
connect(this,&QTextEdit::textChanged,this,&CustomTextEdit::h andleTextChange); connect(this,&QTextEdit::textChanged,this,&CustomTextEdit::h andleTextChange);
} }
protected: protected:
void focusInEvent(QFocusEvent* e) void focusInEvent(QFocusEvent* e)
{ {
trackChange = true; trackChange = true;
textChanged = false; textChanged = false;
QTextEdit::focusInEvent(e); QTextEdit::focusInEvent(e);
} }
skipping to change at line 76 skipping to change at line 76
} }
private: private:
bool textChanged, trackChange; bool textChanged, trackChange;
}; };
class StoredViewModel : public QAbstractListModel class StoredViewModel : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT
public: public:
StoredViewModel(QObject* parent = NULL) : QAbstractListModel(parent) StoredViewModel(QObject* parent = Q_NULLPTR) : QAbstractListModel(pa rent)
{ } { }
int rowCount(const QModelIndex &parent) const int rowCount(const QModelIndex &parent) const
{ {
if(parent.isValid()) if(parent.isValid())
return 0; return 0;
return global.size() + user.size(); return global.size() + user.size();
} }
QVariant data(const QModelIndex &index, int role) const QVariant data(const QModelIndex &index, int role) const
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/