#67: Add list of all committers to about window
This commit is contained in:
@@ -346,7 +346,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") );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user