Merge branch 'develop' of github.com:MultiMC/MultiMC5 into develop
This commit is contained in:
commit
f08c0e3141
2
.gitignore
vendored
2
.gitignore
vendored
@ -18,3 +18,5 @@ tags
|
|||||||
# YouCompleteMe config stuff.
|
# YouCompleteMe config stuff.
|
||||||
.ycm_extra_conf.*
|
.ycm_extra_conf.*
|
||||||
|
|
||||||
|
#OSX Stuff
|
||||||
|
.DS_Store
|
||||||
|
@ -612,6 +612,18 @@ INSTALL(
|
|||||||
REGEX "d\\." EXCLUDE
|
REGEX "d\\." EXCLUDE
|
||||||
REGEX "_debug\\." EXCLUDE
|
REGEX "_debug\\." EXCLUDE
|
||||||
)
|
)
|
||||||
|
IF(APPLE)
|
||||||
|
# Accessible plugin to make buttons look decent on osx
|
||||||
|
INSTALL(
|
||||||
|
DIRECTORY "${QT_PLUGINS_DIR}/accessible"
|
||||||
|
DESTINATION ${PLUGIN_DEST_DIR}
|
||||||
|
COMPONENT Runtime
|
||||||
|
REGEX "quick" EXCLUDE
|
||||||
|
REGEX "d\\." EXCLUDE
|
||||||
|
REGEX "_debug\\." EXCLUDE
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# qtconf
|
# qtconf
|
||||||
|
@ -103,7 +103,7 @@ void IconPickerDialog::addNewIcon()
|
|||||||
QString selectIcons = tr("Select Icons");
|
QString selectIcons = tr("Select Icons");
|
||||||
//: The type of icon files
|
//: The type of icon files
|
||||||
QStringList fileNames = QFileDialog::getOpenFileNames(this, selectIcons, QString(),
|
QStringList fileNames = QFileDialog::getOpenFileNames(this, selectIcons, QString(),
|
||||||
tr("Icons") + "(*.png *.jpg *.jpeg)");
|
tr("Icons") + "(*.png *.jpg *.jpeg *.ico)");
|
||||||
MMC->icons()->installIcons(fileNames);
|
MMC->icons()->installIcons(fileNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,10 +177,10 @@ QList<QString> JavaUtils::FindJavaPaths()
|
|||||||
#elif OSX
|
#elif OSX
|
||||||
QList<QString> JavaUtils::FindJavaPaths()
|
QList<QString> JavaUtils::FindJavaPaths()
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "OS X Java detection incomplete - defaulting to \"java\"";
|
|
||||||
|
|
||||||
QList<QString> javas;
|
QList<QString> javas;
|
||||||
javas.append(this->GetDefaultJava()->path);
|
javas.append(this->GetDefaultJava()->path);
|
||||||
|
javas.append("/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java");
|
||||||
|
javas.append("/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java");
|
||||||
|
|
||||||
return javas;
|
return javas;
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ void IconList::installIcons(QStringList iconFiles)
|
|||||||
QString target = PathCombine("icons", fileinfo.fileName());
|
QString target = PathCombine("icons", fileinfo.fileName());
|
||||||
|
|
||||||
QString suffix = fileinfo.suffix();
|
QString suffix = fileinfo.suffix();
|
||||||
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg")
|
if (suffix != "jpeg" && suffix != "png" && suffix != "jpg" && suffix != "ico")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!QFile::copy(file, target))
|
if (!QFile::copy(file, target))
|
||||||
@ -348,4 +348,4 @@ int IconList::getIconIndex(QString key)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#include "IconList.moc"
|
//#include "IconList.moc"
|
||||||
|
Loading…
Reference in New Issue
Block a user