diff options
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/CMakeLists.txt | 29 | ||||
-rw-r--r-- | client/config/crystalconfig.cpp | 4 |
2 files changed, 31 insertions, 2 deletions
diff --git a/client/config/CMakeLists.txt b/client/config/CMakeLists.txt new file mode 100644 index 0000000..236d683 --- /dev/null +++ b/client/config/CMakeLists.txt @@ -0,0 +1,29 @@ +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} +) + + +##### twin_crystal_config (kpart) + +tde_add_kpart( twin_crystal_config AUTOMOC + + SOURCES + crystalconfig.cpp + configdialog.ui + infodialog.ui + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/client/config/crystalconfig.cpp b/client/config/crystalconfig.cpp index 117aafc..85f0d9d 100644 --- a/client/config/crystalconfig.cpp +++ b/client/config/crystalconfig.cpp @@ -155,7 +155,7 @@ void CrystalConfig::load(TDEConfig*) config_->setGroup("General"); TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); - TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child(value); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child(value.utf8()); if (button) button->setChecked(true); dialog_->drawCaption->setChecked(config_->readBoolEntry("DrawCaption",true)); @@ -376,7 +376,7 @@ void CrystalConfig::defaults() extern "C" { - TQObject* allocate_config(TDEConfig* config, TQWidget* parent) { + KDE_EXPORT TQObject* allocate_config(TDEConfig* config, TQWidget* parent) { return (new CrystalConfig(config, parent)); } } |