Enabling Qt-less builds

This commit is contained in:
Matthias Koefferlein
2026-01-15 01:41:09 +01:00
parent a0ca8febe5
commit 9fe22869ed
10 changed files with 35 additions and 27 deletions
@@ -371,7 +371,7 @@ EditorServiceBase::focus_page ()
bool
EditorServiceBase::key_event (unsigned int key, unsigned int /*buttons*/)
{
if (is_active () && (key == Qt::Key_Tab || key == Qt::Key_Backtab)) {
if (is_active () && (key == lay::KeyTab || key == lay::KeyBacktab)) {
focus_page_open ();
return true;
} else {
@@ -384,7 +384,7 @@ EditorServiceBase::shortcut_override_event (unsigned int key, unsigned int /*but
{
auto fp = focus_page ();
return is_active ()
&& (key == Qt::Key_Tab || key == Qt::Key_Backtab)
&& (key == lay::KeyTab || key == lay::KeyBacktab)
&& fp
&& (fp->is_modal_page () || fp->is_visible ());
}
@@ -400,7 +400,9 @@ void
EditorServiceBase::show_error (tl::Exception &ex)
{
tl::error << ex.msg ();
#if defined(HAVE_QT)
QMessageBox::critical (ui ()->widget (), tr ("Error"), tl::to_qstring (ex.msg ()));
#endif
}
}
+1 -7
View File
@@ -24,16 +24,10 @@
#include "layEditable.h"
#include "layLayoutViewBase.h"
#include "layEditorUtils.h"
#include "layEditorOptionsPage.h"
#include "laySelector.h"
#include "laybasicConfig.h"
#if defined(HAVE_QT)
# include "layEditorOptionsPage.h"
# include <QWidget>
# include <QHBoxLayout>
# include <QLineEdit>
#endif
namespace lay
{
+1 -1
View File
@@ -51,9 +51,9 @@ class ViewService;
class Editable;
class Drawing;
class TechnologyComponentProvider;
class EditorOptionsPage;
#if defined(HAVE_QT)
class Browser;
class EditorOptionsPage;
class ConfigPage;
#endif