@@ -347,7 +347,18 @@ FILE(GLOB_RECURSE lmms_SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)
|
||||
|
||||
SET(lmms_MOC ${lmms_INCLUDES})
|
||||
|
||||
SET(lmms_EMBEDDED_RESOURCES ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/COPYING)
|
||||
# Get list of all committers from git history, ordered by number of commits
|
||||
FIND_PACKAGE(Git)
|
||||
IF(GIT_FOUND)
|
||||
SET(CONTRIBUTORS ${CMAKE_BINARY_DIR}/CONTRIBUTORS)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${GIT_EXECUTABLE} shortlog -sne
|
||||
COMMAND cut -c8-
|
||||
OUTPUT_FILE ${CONTRIBUTORS}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
ENDIF(GIT_FOUND)
|
||||
|
||||
SET(lmms_EMBEDDED_RESOURCES ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/COPYING ${CONTRIBUTORS})
|
||||
|
||||
QT4_WRAP_CPP(lmms_MOC_out ${lmms_MOC} OPTIONS -nw)
|
||||
QT4_WRAP_UI(lmms_UI_out ${lmms_UI})
|
||||
|
||||
@@ -79,7 +79,19 @@ aboutDialog::aboutDialog() :
|
||||
authorLabel->setPlainText( embed::getText( "AUTHORS" ) );
|
||||
|
||||
licenseLabel->setPlainText( embed::getText( "COPYING" ) );
|
||||
|
||||
QString contText = embed::getText( "CONTRIBUTORS" );
|
||||
if ( contText.length() >= 2 )
|
||||
{
|
||||
QWidget *widget = new QWidget();
|
||||
QVBoxLayout *layout = new QVBoxLayout();
|
||||
QTextEdit *contWidget = new QTextEdit();
|
||||
contWidget->setReadOnly(true);
|
||||
contWidget->setText( contText );
|
||||
|
||||
layout->addWidget( new QLabel( tr("Contributors ordered by number of commits:"), this ) );
|
||||
layout->addWidget( contWidget );
|
||||
widget->setLayout( layout );
|
||||
tabWidget->insertTab( 2, widget, tr("Involved") );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0" >
|
||||
<class>AboutDialog</class>
|
||||
<widget class="QDialog" name="AboutDialog" >
|
||||
@@ -125,7 +126,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string>Copyright (c) 2004-2013, LMMS developers</string>
|
||||
<string>Copyright (c) 2004-2014, LMMS developers</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>true</bool>
|
||||
@@ -151,7 +152,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4" >
|
||||
<property name="text" >
|
||||
<string>http://lmms.sourceforge.net</string>
|
||||
<string><html><head/><body><p><a href="http://lmms.sourceforge.net"><span style=" text-decoration: underline; color:#0000ff;">http://lmms.sourceforge.net</span></a></p></body></html></string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>true</bool>
|
||||
|
||||
Reference in New Issue
Block a user