Giter Club home page Giter Club logo

Comments (2)

JonisK avatar JonisK commented on May 23, 2024

I get a similar error message when building on Ubuntu 21.10 with make:

g++ -c -pipe -O2 -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -I../libs/jsonconfig -I../app-static -I../libs -I../3rdparty/peg-markdown-highlight -I/usr/include/hunspell -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtWebKit -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o optionsdialog.o optionsdialog.cpp
optionsdialog.cpp: In member function ‘void OptionsDialog::validateShortcut(int, int)’:
optionsdialog.cpp:221:46: error: invalid use of incomplete type ‘class QAction’
  221 |             new QTableWidgetItem(actions[row]->shortcut().toString()));
      |                                              ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:228:58: error: invalid use of incomplete type ‘class QAction’
  228 |                         new QTableWidgetItem(actions[row]->shortcut().toString()));
      |                                                          ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:229:129: error: invalid use of incomplete type ‘class QAction’
  229 | formation(this, tr("Conflict"), tr("This shortcut is already used for \"%1\"").arg(actions[c]->text().remove('&')));
      |                                                                                              ^~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:237:40: error: invalid use of incomplete type ‘class QAction’
  237 |         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
      |                                        ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:237:88: error: expected primary-expression before ‘>’ token
  237 |         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
      |                                                                                        ^
optionsdialog.cpp:237:90: error: expected primary-expression before ‘)’ token
  237 |         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
      |                                                                                          ^
optionsdialog.cpp: In member function ‘void OptionsDialog::setupShortcutsTable()’:
optionsdialog.cpp:254:62: error: invalid use of incomplete type ‘class QAction’
  254 |         QTableWidgetItem *label = new QTableWidgetItem(action->text().remove('&'));
      |                                                              ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:256:51: error: invalid use of incomplete type ‘class QAction’
  256 |         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
      |                                                   ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:256:99: error: expected primary-expression before ‘>’ token
  256 |         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
      |                                                                                                   ^
optionsdialog.cpp:256:101: error: expected primary-expression before ‘)’ token
  256 |         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
      |                                                                                                     ^
optionsdialog.cpp:257:19: error: invalid use of incomplete type ‘class QAction’
  257 |         if (action->shortcut() != defaultKeySeq) {
      |                   ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:262:66: error: invalid use of incomplete type ‘class QAction’
  262 |         QTableWidgetItem *accel = new KeySequenceTableItem(action->shortcut());
      |                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::readState()’:
optionsdialog.cpp:323:50: error: invalid use of incomplete type ‘class QAction’
  323 |         if (options->hasCustomShortcut(actions[i]->objectName())) {
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp:324:101: error: invalid use of incomplete type ‘class QAction’
  324 |       ui->shortcutsTable->item(i, 1)->setData(Qt::EditRole, options->customShortcut(actions[i]->objectName()));
      |                                                                                               ^~

In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::saveState()’:
optionsdialog.cpp:370:46: error: invalid use of incomplete type ‘class QAction’
  370 |         options->addCustomShortcut(actions[i]->objectName(), customKeySeq);
      |                                              ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
   68 | class QAction;
      |       ^~~~~~~
make[1]: *** [Makefile:932: optionsdialog.o] Error 1
make[1]: Leaving directory '/home/user/git/CuteMarkEd/app'
make: *** [Makefile:128: sub-app-make_first] Error 2

from cutemarked.

 avatar commented on May 23, 2024

Hello everybody, I know I am a bit late to the party but PR #383 would solve this one. As I don't know if this project will see any commits from the main devs you might be better off cloning my fork.

I really start to like this editor. It's really fast and the live preview does it for me. Excellent work but a pity development seems to be ceased.

from cutemarked.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.