Skip to content

Commit

Permalink
Fix tikzeditorviewabstract to work in QT-only build
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcarreira committed Dec 19, 2020
1 parent 5e9abda commit 6157e86
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions app/tikzeditorviewabstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,30 @@
#define TIKZEDITORVIEWABSTRACT_H

#include <QWidget>
#ifndef KTIKZ_USE_KDE
#include <QMenu>
#include <QToolBar>
#endif

class TikzEditorViewAbstract: public QWidget
{
public:
explicit TikzEditorViewAbstract(QWidget *parent = 0)
: QWidget(parent)
explicit TikzEditorViewAbstract(QWidget *parent = 0)
: QWidget(parent)
{}
virtual ~TikzEditorViewAbstract(){ };
virtual ~TikzEditorViewAbstract() { };

virtual QString text() = 0;
virtual void updateCompleter(bool useCompletion, const QStringList &words) = 0;
virtual void clear() = 0;
virtual bool isEmpty() = 0;
virtual bool isModified() = 0;
virtual void setModified( bool value ) = 0;
#ifndef KTIKZ_USE_KDE
virtual QMenu *editMenu() = 0;
virtual QMenu *bookmarksMenu() = 0;
virtual QToolBar *toolBar() = 0;
#endif
virtual QString text() = 0;
virtual void updateCompleter(bool useCompletion, const QStringList &words) = 0;
virtual void clear() = 0;
virtual bool isEmpty() = 0;
virtual bool isModified() = 0;
virtual void setModified(bool value) = 0;

};

Expand Down

0 comments on commit 6157e86

Please sign in to comment.