mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
make it possible to change bug reports URL via build-time variable
This commit is contained in:
parent
808983c6bc
commit
0773b20082
3 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
project(kdeui)
|
||||
|
||||
set(BUG_REPORT_URL "https://github.com/fluxer/katana/issues"
|
||||
CACHE STRING "Specifies the URL that will be opened from the help menu.")
|
||||
|
||||
set(KDEUI_NO_ATTICA FALSE)
|
||||
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
||||
set(KDEUI_NO_ATTICA TRUE)
|
||||
|
@ -48,6 +51,12 @@ endif(NOT KDEUI_NO_ATTICA)
|
|||
|
||||
macro_bool_to_01(HAVE_ATTICA)
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/widgets/config-widgets.h.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/widgets/config-widgets.h
|
||||
)
|
||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/widgets )
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dialogs/kaboutapplicationconfigattica_p.h.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dialogs/kaboutapplicationconfigattica_p.h
|
||||
|
|
1
kdeui/widgets/config-widgets.h.cmake
Normal file
1
kdeui/widgets/config-widgets.h.cmake
Normal file
|
@ -0,0 +1 @@
|
|||
#define BUG_REPORT_URL "${BUG_REPORT_URL}"
|
|
@ -53,6 +53,8 @@
|
|||
#include <QX11EmbedWidget>
|
||||
#endif
|
||||
|
||||
#include <config-widgets.h>
|
||||
|
||||
using namespace KDEPrivate;
|
||||
|
||||
class KHelpMenuPrivate
|
||||
|
@ -306,8 +308,7 @@ void KHelpMenu::aboutKDE()
|
|||
|
||||
void KHelpMenu::reportBug()
|
||||
{
|
||||
#warning "unhardcode the bug reports URL"
|
||||
KToolInvocation::invokeBrowser( "http://entropy-linux.com/forums" );
|
||||
KToolInvocation::invokeBrowser( BUG_REPORT_URL );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue