Skip to content
Permalink
Browse files

fix warn

  • Loading branch information...
rodlie committed May 18, 2019
1 parent 797eb0f commit 5101a3e91826d2f7bfb939c16eb96e24ad220f9e
@@ -73,6 +73,7 @@ if(CMAKE_BUILD_TYPE MATCHES "^(release|Release|RELEASE)$")
else()
message("-- DRACO DEBUG BUILD")
endif()
add_compile_options(-Wall -Wextra)

# qt
find_package(Qt5Core REQUIRED)
@@ -131,6 +131,7 @@ void LDesktopPluginSpace::setDesktopArea(QRect area)

void LDesktopPluginSpace::UpdateGeom(int oldgrid)
{
Q_UNUSED(oldgrid)
qDebug() << "Updated Desktop Geom:" << desktopRect.size() << GRIDSIZE << desktopRect.size()/GRIDSIZE;
// Go through and check the locations/sizes of all items (particularly the ones on the bottom/right edges)
//bool reload = false;
@@ -293,8 +293,8 @@ void LPanel::UpdatePanel(bool geomonly)
// Now update the appearance of the toolbar
if (settings->value(PPREFIX+"customColor", true).toBool()) {
QString color = settings->value(PPREFIX+"color", "rgba(0,0,0,160)").toString();
int borderRadius = 3;
if (panelPercent>99) { borderRadius=0; }
//int borderRadius = 3;
//if (panelPercent>99) { borderRadius=0; }
//QString style = "QWidget#LuminaPanelColor{ background: %1; border: 1px solid %1; }";

QString style;
@@ -424,9 +424,9 @@ QStringList LUtils::imageExtensions(bool wildcards){
return imgExtensions;
}

QTranslator* LUtils::LoadTranslation(QApplication *app, QString appname, QString locale, QTranslator *cTrans){
/* QTranslator* LUtils::LoadTranslation(QApplication *app, QString appname, QString locale, QTranslator *cTrans){
return new QTranslator();
}
}*/

QStringList LUtils::knownLocales(){
QDir i18n;// = QDir(LOS::LuminaShare()+"i18n");
@@ -125,7 +125,7 @@ class LUtils{
static QStringList videoExtensions();

//Load a translation file for a Lumina Project
static QTranslator* LoadTranslation(QApplication *app, QString appname, QString locale = "", QTranslator *cTrans = 0);
//static QTranslator* LoadTranslation(QApplication *app, QString appname, QString locale = "", QTranslator *cTrans = 0);
//Other localization shortcuts
static QStringList knownLocales(); //Note: This only lists locales known to Lumina (so the i18n files need to be installed)
static void setLocaleEnv(QString lang, QString msg="", QString time="", QString num="" ,QString money="",QString collate="", QString ctype="");
@@ -538,7 +538,7 @@ struct RenameNode : public ChainNode {
if (r.move) {
QFileInfo fis(r.source);
QDir dir = fis.dir();
if (!(r.copyFlags & QtFileCopier::FollowLinks) || !r.dir && !fis.isSymLink()) {
if (!(r.copyFlags & QtFileCopier::FollowLinks) || (!r.dir && !fis.isSymLink())) {
if (dir.rename(fis.fileName(), r.dest)) {
QFileInfo fid(r.dest);
if (r.dir)

0 comments on commit 5101a3e

Please sign in to comment.
You can’t perform that action at this time.