mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-01 02:18:09 +02:00
Enabling Qt-less builds
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user