diff options
author | Michele Calgaro <[email protected]> | 2024-05-06 16:30:48 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-05-07 11:02:46 +0900 |
commit | f2e2d9a5271aa9cfd966592d50f60d5b5bf550f4 (patch) | |
tree | cc7432e510ae4b3e06da2eb25b1253e3151e8219 /src/common/gui | |
parent | 98a431600b55a53baed727e5821469a3e9a41bca (diff) | |
download | piklab-f2e2d9a5271aa9cfd966592d50f60d5b5bf550f4.tar.gz piklab-f2e2d9a5271aa9cfd966592d50f60d5b5bf550f4.zip |
Include moc files in cpp sources
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 1c22ae157c39e2c1434e5ec43a05eda78dc86798)
Diffstat (limited to 'src/common/gui')
-rw-r--r-- | src/common/gui/Makefile.am | 2 | ||||
-rw-r--r-- | src/common/gui/config_widget.cpp | 13 | ||||
-rw-r--r-- | src/common/gui/container.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/dialog.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/editlistbox.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/hexword_gui.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/list_container.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/list_view.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/misc_gui.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/number_gui.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/purl_gui.cpp | 2 |
11 files changed, 32 insertions, 1 deletions
diff --git a/src/common/gui/Makefile.am b/src/common/gui/Makefile.am index c4bb948..f26148f 100644 --- a/src/common/gui/Makefile.am +++ b/src/common/gui/Makefile.am @@ -4,4 +4,4 @@ libcommonui_la_LDFLAGS = $(all_libraries) noinst_LTLIBRARIES = libcommonui.la libcommonui_la_SOURCES = container.cpp dialog.cpp editlistbox.cpp \ hexword_gui.cpp list_view.cpp misc_gui.cpp number_gui.cpp pfile_ext.cpp purl_ext.cpp \ - purl_gui.cpp list_container.cpp + purl_gui.cpp list_container.cpp config_widget.cpp diff --git a/src/common/gui/config_widget.cpp b/src/common/gui/config_widget.cpp new file mode 100644 index 0000000..f1412bb --- /dev/null +++ b/src/common/gui/config_widget.cpp @@ -0,0 +1,13 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek <[email protected]> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + ***************************************************************************/ +#include "config_widget.h" + +// Empty file, only used to make sure the class gets MOCed correctly + +#include "config_widget.moc" diff --git a/src/common/gui/container.cpp b/src/common/gui/container.cpp index 7331be5..f66cd38 100644 --- a/src/common/gui/container.cpp +++ b/src/common/gui/container.cpp @@ -78,3 +78,5 @@ ButtonContainer::ButtonContainer(const TQString &title, TQWidget *parent) addWidget(_button, 0,0, 0,1); setColStretch(2, 1); } + +#include "container.moc" diff --git a/src/common/gui/dialog.cpp b/src/common/gui/dialog.cpp index b865edf..fb20b34 100644 --- a/src/common/gui/dialog.cpp +++ b/src/common/gui/dialog.cpp @@ -197,3 +197,5 @@ TextEditorDialog::TextEditorDialog(const TQString &text, const TQString &caption w->setWordWrap(wrapAtWidgetWidth ? TQTextEdit::WidgetWidth : TQTextEdit::NoWrap); setMainWidget(w); } + +#include "dialog.moc" diff --git a/src/common/gui/editlistbox.cpp b/src/common/gui/editlistbox.cpp index 41b41bd..b03fde5 100644 --- a/src/common/gui/editlistbox.cpp +++ b/src/common/gui/editlistbox.cpp @@ -338,3 +338,5 @@ TQString EditListBox::selectedText() const if ( item==0 ) return TQString(); return item->text(textColumn()); } + +#include "editlistbox.moc" diff --git a/src/common/gui/hexword_gui.cpp b/src/common/gui/hexword_gui.cpp index 97cc25c..aabf40f 100644 --- a/src/common/gui/hexword_gui.cpp +++ b/src/common/gui/hexword_gui.cpp @@ -134,3 +134,5 @@ TQSize GenericHexWordEditor::minimumSizeHint() const { return TQSize(maxCharWidth(NumberBase::Hex, font()) * (_nbChars+1), fontMetrics().height()); } + +#include "hexword_gui.moc" diff --git a/src/common/gui/list_container.cpp b/src/common/gui/list_container.cpp index 372904e..47f87aa 100644 --- a/src/common/gui/list_container.cpp +++ b/src/common/gui/list_container.cpp @@ -93,3 +93,5 @@ int ListViewItemContainer::id(const TQListViewItem *item) const { return (_ids->contains(item) ? int((*_ids)[item]) : -1); } + +#include "list_container.moc" diff --git a/src/common/gui/list_view.cpp b/src/common/gui/list_view.cpp index 8fbeee2..1d9274d 100644 --- a/src/common/gui/list_view.cpp +++ b/src/common/gui/list_view.cpp @@ -219,3 +219,5 @@ int EditListViewItem::width(const TQFontMetrics &fm, const TQListView *lv, int c delete edit; return w; } + +#include "list_view.moc" diff --git a/src/common/gui/misc_gui.cpp b/src/common/gui/misc_gui.cpp index 06e0d6b..7c6e63a 100644 --- a/src/common/gui/misc_gui.cpp +++ b/src/common/gui/misc_gui.cpp @@ -232,3 +232,5 @@ void ComboBox::wheelEvent(TQWheelEvent *e) if (_ignoreWheelEvent) TQApplication::sendEvent(parent(), e); // #### not sure why ignoring is not enough... else TQComboBox::wheelEvent(e); } + +#include "misc_gui.moc" diff --git a/src/common/gui/number_gui.cpp b/src/common/gui/number_gui.cpp index 8e036c3..21bc5fe 100644 --- a/src/common/gui/number_gui.cpp +++ b/src/common/gui/number_gui.cpp @@ -70,3 +70,5 @@ void NumberLineEdit::textChangedSlot() case TQValidator::Invalid: setColor(red); break; } } + +#include "number_gui.moc" diff --git a/src/common/gui/purl_gui.cpp b/src/common/gui/purl_gui.cpp index e936a99..2908a10 100644 --- a/src/common/gui/purl_gui.cpp +++ b/src/common/gui/purl_gui.cpp @@ -149,3 +149,5 @@ void PURL::UrlWidget::buttonClicked() _edit->setText(url.filepath()); emit changed(); } + +#include "purl_gui.moc" |