[kwin] Re-enable build of kwin_update_default_rules

Currently using KDE4Support, needs more proper porting. Tool works,
installs the kwin rule.
master
Martin Gräßlin 11 years ago
parent 8c0fe2ad41
commit b7f3f582e3

@ -97,7 +97,7 @@ endif()
if( KWIN_BUILD_DECORATIONS ) if( KWIN_BUILD_DECORATIONS )
add_subdirectory( clients ) add_subdirectory( clients )
endif() endif()
# add_subdirectory( data ) add_subdirectory( data )
add_subdirectory( effects ) add_subdirectory( effects )
add_subdirectory( scripts ) add_subdirectory( scripts )

@ -4,7 +4,7 @@ set(kwin_update_default_rules_SRCS update_default_rules.cpp)
add_executable( kwin_update_default_rules ${kwin_update_default_rules_SRCS}) add_executable( kwin_update_default_rules ${kwin_update_default_rules_SRCS})
target_link_libraries( kwin_update_default_rules ) target_link_libraries( kwin_update_default_rules Qt5::Core Qt5::DBus KF5::ConfigCore KF5::KDE4Support )
install(TARGETS kwin_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/ ) install(TARGETS kwin_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/ )

@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kconfig.h> #include <kconfig.h>
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include <kcomponentdata.h> #include <kcomponentdata.h>
#include <kaboutdata.h> #include <k4aboutdata.h>
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <kglobal.h> #include <kglobal.h>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
@ -34,7 +34,7 @@ int main( int argc, char* argv[] )
{ {
if( argc != 2 ) if( argc != 2 )
return 1; return 1;
KAboutData about( "kwin_update_default_rules", "kwin", KLocalizedString(), 0 ); K4AboutData about( "kwin_update_default_rules", "kwin", KLocalizedString(), 0 );
KCmdLineArgs::init( argc, argv, &about ); KCmdLineArgs::init( argc, argv, &about );
KComponentData inst( &about ); KComponentData inst( &about );
Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated descriptions Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated descriptions

Loading…
Cancel
Save