Build configuration module

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/2/head
Mavridis Philippe 2 months ago
parent 67a9b630c7
commit ede092a042
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -29,6 +29,8 @@ tde_add_kpart(twin_mallory AUTOMOC
DESTINATION ${PLUGIN_INSTALL_DIR}
)
tde_conditional_add_subdirectory(BUILD_TCC_MODULE config)
### Data #######################################################################
tde_create_translated_desktop(
SOURCE mallory.desktop

@ -0,0 +1,26 @@
################################################################################
# twin-style-mallory #
# ------------------ #
# This file is licensed under the terms of GNU GPL v3 or later. #
# Improvements and feedback are welcome. #
################################################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIBRARY_DIRS}
)
### Libraries ##################################################################
tde_add_kpart(twin_mallory_config AUTOMOC
SOURCES malloryconfig.cpp configdialog.ui
LINK tdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -10,11 +10,11 @@
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdeglobal.h>
#include <ntqcheckbox.h>
#include <ntqslider.h>
#include <ntqspinbox.h>
#include <ntqcombobox.h>
#include <ntqwhatsthis.h>
#include <tqcheckbox.h>
#include <tqslider.h>
#include <tqspinbox.h>
#include <tqcombobox.h>
#include <tqwhatsthis.h>
#include "malloryconfig.h"
#include "configdialog.h"
@ -34,15 +34,15 @@ MalloryConfig::MalloryConfig(TDEConfig* config, TQWidget* parent)
load(config);
// Setup the connections.
connect(m_dialog->m_borderSize, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_dialog->m_titleSize, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_dialog->m_buttonSize, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_dialog->m_lessRounded, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
connect(m_dialog->m_buttonStyle, SIGNAL(activated(int)), this, SIGNAL(changed()));
connect(m_dialog->m_resizeHandle, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
connect(m_dialog->m_superSize, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
connect(m_dialog->m_titleShadow, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
connect(m_dialog->m_titleShadowSize, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_dialog->m_borderSize, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_titleSize, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_buttonSize, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_lessRounded, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_buttonStyle, TQ_SIGNAL(activated(int)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_resizeHandle, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_superSize, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_titleShadow, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed()));
connect(m_dialog->m_titleShadowSize, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(changed()));
}

@ -10,7 +10,7 @@
#ifndef MALLORYCONFIG_H
#define MALLORYCONFIG_H
#include <ntqobject.h>
#include <tqobject.h>
class TQButtonGroup;
class TQGroupBox;
@ -20,7 +20,7 @@ class ConfigDialog;
class MalloryConfig : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
MalloryConfig(TDEConfig* config, TQWidget* parent); ///< Constructor
~MalloryConfig(); ///< Destructor

Loading…
Cancel
Save