Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release/biox-avocado to dev #43

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cellink/widgets/3d.pri
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ QT += core-private gui-private
CONFIG += no_private_qt_headers_warning

HEADERS += \
$$PWD/qt3dwindow.h
$$PWD/qt3dwindow_ci.h

SOURCES += \
$$PWD/qt3dwindow.cpp
$$PWD/qt3dwindow_ci.cpp

include($$PWD/../core/global.pri)
INCLUDEPATH += \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
**
****************************************************************************/

#include "codeeditor.h"
#include "codeeditor_ci.h"

#include <QtCore/qabstractitemmodel.h>
#include <QtGui/qfont.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
**
****************************************************************************/

#ifndef CODEEDITOR_H
#define CODEEDITOR_H
#ifndef CODEEDITOR_CI_H
#define CODEEDITOR_CI_H

#include "qtcellink/src/cellink/core/cellink.h"

#include <QtWidgets/qplaintextedit.h>

#include "highlightlines.h"
#include "highlightlines_ci.h"

class QCompleter;

Expand All @@ -56,13 +56,13 @@ class Q_CELLINK_EXPORT LineNumberBar : public QWidget
Q_PROPERTY(int hzMargin READ hzMargin WRITE setHzMargin NOTIFY hzMarginChanged)
public:
explicit LineNumberBar(CodeEditor* editor);
LineNumberBar(const LineNumberBar&) = delete;
~LineNumberBar() override;

void setHzMargin(int margin);
[[nodiscard]] int hzMargin() const { return m_hzMargin; }

int hzMargin() const { return m_hzMargin; }

QSize sizeHint() const override { return m_size; }
[[nodiscard]] QSize sizeHint() const override { return m_size; }

protected:
void paintEvent(QPaintEvent* event) override;
Expand All @@ -86,17 +86,18 @@ class Q_CELLINK_EXPORT CodeEditor : public QPlainTextEdit
Q_PROPERTY(HighlightLines highlightLines READ highlightLines NOTIFY highlightLinesChanged)
public:
explicit CodeEditor(QWidget* parent = nullptr);
CodeEditor(const CodeEditor&) = delete;
~CodeEditor() override;

QCompleter* completer() const { return m_completer; }
[[nodiscard]] QCompleter* completer() const { return m_completer; }
void setCompleter(QCompleter* completer);

qreal highlightLineColorAlpha() const { return m_highlightLineColorAlpha; }
[[nodiscard]] qreal highlightLineColorAlpha() const { return m_highlightLineColorAlpha; }
void setHighlightLineColorAlpha(qreal alpha);

LineNumberBar& lineNumberBar() { return m_lineNumberBar; }
[[nodiscard]] LineNumberBar& lineNumberBar() { return m_lineNumberBar; }

HighlightLines highlightLines() const { return m_highlightLines; }
[[nodiscard]] HighlightLines highlightLines() const { return m_highlightLines; }

protected:
void focusInEvent(QFocusEvent* event) override;
Expand All @@ -119,7 +120,7 @@ private slots:
void insertCompletion(const QString& completion);

private:
QString textUnderCursor() const;
[[nodiscard]] QString textUnderCursor() const;
void paintLineNumbers(QPainter* painter, const QRect& rect);
void updateHighlightLines(bool cursorChanged);

Expand All @@ -134,4 +135,4 @@ private slots:

} // namespace cellink

#endif // CODEEDITOR_H
#endif // CODEEDITOR_CI_H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "doublespinbox.h"
#include "doublespinbox_ci.h"

namespace cellink {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DOUBLESPINBOX_H
#define DOUBLESPINBOX_H
#ifndef DOUBLESPINBOX_CI_H
#define DOUBLESPINBOX_CI_H

#include "qtcellink/src/cellink/core/cellink.h"

Expand Down Expand Up @@ -30,4 +30,4 @@ class Q_CELLINK_EXPORT DoubleSpinBox : public QDoubleSpinBox

} // namespace cellink

#endif // DOUBLESPINBOX_H
#endif // DOUBLESPINBOX_CI_H
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

#include "progressindicator.h"
#include "progressindicator_ci.h"

#include <QPainter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* SOFTWARE.
*/

#ifndef PROGRESSINDICATOR_H
#define PROGRESSINDICATOR_H
#ifndef PROGRESSINDICATOR_CI_H
#define PROGRESSINDICATOR_CI_H

#include "qtcellink/src/cellink/core/cellink.h"

Expand Down Expand Up @@ -124,4 +124,4 @@ public slots:

} // namespace cellink

#endif // PROGRESSINDICATOR_H
#endif // PROGRESSINDICATOR_CI_H
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
**
****************************************************************************/

#include "qt3dwindow.h"
#include "qt3dwindow_ci.h"

#include <Qt3DCore/qaspectengine.h>
#include <Qt3DCore/qentity.h>
Expand Down Expand Up @@ -105,7 +105,7 @@ class Qt3DWindowPrivate : public QWindowPrivate

bool m_initialized;

Q_DECLARE_PUBLIC(Qt3DWindow)
Q_DECLARE_PUBLIC(QtCellink::Qt3DWindow)
};

Qt3DWindowPrivate::Qt3DWindowPrivate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#ifndef QTCELLINK3DWINDOW_H
#define QTCELLINK3DWINDOW_H

#include "qtcellink/src/cellink/core/cellink.h"
#include "../core/cellink.h"

#include <Qt3DExtras/qt3dextras_global.h>
#include <QtGui/QWindow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
** <http://libqxt.org> <[email protected]>
**
****************************************************************************/
#include "rangeslider.h"
#include "rangeslider_ci.h"

#include <QtGui/qevent.h>
#include <QtWidgets/qstyleoption.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
** <http://libqxt.org> <[email protected]>
**
****************************************************************************/
#ifndef RANGESLIDER_H
#define RANGESLIDER_H
#ifndef RANGESLIDER_CI_H
#define RANGESLIDER_CI_H

#include "qtcellink/src/cellink/core/cellink.h"

Expand Down Expand Up @@ -107,4 +107,4 @@ public Q_SLOTS:

} // namespace cellink

#endif // RANGESLIDER_H
#endif // RANGESLIDER_CI_H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "spinbox.h"
#include "spinbox_ci.h"

namespace cellink {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SPINBOX_H
#define SPINBOX_H
#ifndef SPINBOX_CI_H
#define SPINBOX_CI_H

#include "qtcellink/src/cellink/core/cellink.h"

Expand Down Expand Up @@ -32,4 +32,4 @@ class Q_CELLINK_EXPORT SpinBox : public QSpinBox

} // namespace cellink

#endif // SPINBOX_H
#endif // SPINBOX_CI_H
23 changes: 12 additions & 11 deletions src/cellink/widgets/widgets.pri
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ DEPENDPATH += $$PWD
QT += widgets

HEADERS += \
$$PWD/codeeditor.h \
$$PWD/doublespinbox.h \
$$PWD/highlightlines.h \
$$PWD/progressindicator.h \
$$PWD/rangeslider.h \
$$PWD/spinbox.h
$$PWD/codeeditor_ci.h \
$$PWD/doublespinbox_ci.h \
$$PWD/highlightlines_ci.h \
$$PWD/progressindicator_ci.h \
$$PWD/rangeslider_ci.h \
$$PWD/spinbox_ci.h

# _ci suffix to avoid .obj clash with qtcellinkinternal/widgets/ .cpp files with same name
SOURCES += \
$$PWD/codeeditor.cpp \
$$PWD/doublespinbox.cpp \
$$PWD/progressindicator.cpp \
$$PWD/rangeslider.cpp \
$$PWD/spinbox.cpp
$$PWD/codeeditor_ci.cpp \
$$PWD/doublespinbox_ci.cpp \
$$PWD/progressindicator_ci.cpp \
$$PWD/rangeslider_ci.cpp \
$$PWD/spinbox_ci.cpp

include($$PWD/../core/global.pri)
INCLUDEPATH += \
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/geometryloaders/amf/amf.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TARGET = amfgeometryloader
QT += core-private 3dcore 3dcore-private 3drender 3drender-private
CONFIG += assimp

INCLUDEPATH += \
$$MOC_DIR
Expand All @@ -20,11 +19,14 @@ DISTFILES += \
PLUGIN_TYPE = geometryloaders
PLUGIN_CLASS_NAME = AmfGeometryLoaderPlugin

load(assimp)
load(qt_build_config)
load(qt_plugin)

exists($$BUILD_TREE/conanbuildinfo.pri) {
CONFIG += conan_basic_setup
include($$BUILD_TREE/conanbuildinfo.pri)
} else {
CONFIG += assimp
warning("Need assimp included via conan in the top level project, attempting to sideload")
load(assimp)
}
1 change: 1 addition & 0 deletions src/plugins/geometryloaders/amf/amfgeometryloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

class AmfGeometryLoader : public Qt3DRender::BaseGeometryLoader
{
Q_OBJECT
protected:
bool doLoad(QIODevice* ioDev, const QString& subMesh) final;
};
Expand Down
Loading