Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pbartfai
LPub4
lpub4-linux.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lpub4-linux.patch of Package LPub4
--- LPub4/lpub.pro 2014-08-28 17:35:14.000000000 +0200 +++ LPub4-orig/lpub.pro 2016-03-07 07:48:07.850876917 +0100 @@ -9,6 +9,8 @@ MOC_DIR = ./moc OBJECTS_DIR = ./objs RCC_DIR = ./rcc +QMAKE_CXXFLAGS += $(TESTING) +QT += widgets macx { ICON = LPub.icns --- LPub4/main.cpp 2009-06-27 20:35:35.000000000 +0200 +++ LPub4-orig/main.cpp 2016-03-07 07:48:07.851876987 +0100 @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) { - Q_INIT_RESOURCE(LPub); + Q_INIT_RESOURCE(lpub); QApplication app(argc, argv); --- LPub4/openclose.cpp 2010-11-21 20:03:44.000000000 +0100 +++ LPub4-orig/openclose.cpp 2016-03-07 09:07:20.170118627 +0100 @@ -40,7 +40,7 @@ this, tr("Open LDraw File"), modelDir, - tr("LDraw Files (*.DAT;*.LDR;*.MPD;*.dat;*.ldr;*.mpd)")); + tr("LDraw Files (*.DAT *.LDR *.MPD *.dat *.ldr *.mpd)")); QFileInfo info(fileName); --- LPub4/preferencesdialog.cpp 2014-08-28 17:35:15.000000000 +0200 +++ LPub4-orig/preferencesdialog.cpp 2016-03-07 09:22:40.422084957 +0100 @@ -101,8 +101,9 @@ QFileDialog dialog(parent); dialog.setFileMode(QFileDialog::Directory); dialog.setWindowTitle(tr("Locate LGEO Directory")); +#if QT_VERSION >= 0x40500 dialog.setOptions(QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); - +#endif if (dialog.exec()) { QStringList selectedFiles = dialog.selectedFiles(); @@ -121,7 +122,7 @@ dialog.setWindowTitle(tr("Locate Parts List orientation/size file")); dialog.setFileMode(QFileDialog::ExistingFile); - dialog.setFilter("LDraw (*.mpd,*.dat,*.ldr)"); + dialog.setFilter("LDraw (*.mpd *.dat *.ldr)"); if (dialog.exec()) { QStringList selectedFiles = dialog.selectedFiles(); @@ -141,7 +142,7 @@ dialog.setWindowTitle(tr("Locate LDView program")); dialog.setFileMode(QFileDialog::ExistingFile); -#ifdef __APPLE__ +#if defined( __APPLE__ ) || defined (Q_OS_LINUX) //dialog.setFilter("Program (*.app,*.App)"); #else dialog.setFilter("Program (*.exe)"); @@ -171,7 +172,7 @@ dialog.setWindowTitle(tr("Locate LDGLite program")); dialog.setFileMode(QFileDialog::ExistingFile); -#ifdef __APPLE__ +#if defined( __APPLE__ ) || defined (Q_OS_LINUX) //dialog.setFilter("Program (*.app,*.App)"); #else dialog.setFilter("Program (*.exe)"); @@ -201,7 +202,7 @@ dialog.setWindowTitle(tr("Locate L3P program")); dialog.setFileMode(QFileDialog::ExistingFile); -#ifdef __APPLE__ +#if defined( __APPLE__ ) || defined (Q_OS_LINUX) //dialog.setFilter("Program (*.app,*.App)"); #else dialog.setFilter("Program (*.exe)"); @@ -232,7 +233,7 @@ dialog.setWindowTitle(tr("Locate POV-RAY program")); dialog.setFileMode(QFileDialog::ExistingFile); -#ifdef __APPLE__ +#if defined( __APPLE__ ) || defined (Q_OS_LINUX) //dialog.setFilter("Program (*.app,*.App)"); #else dialog.setFilter("Program (*.exe)"); --- LPub4/render.cpp 2014-08-28 17:35:15.000000000 +0200 +++ LPub4-orig/render.cpp 2016-03-07 07:48:07.821874905 +0100 @@ -41,7 +41,11 @@ #include "paths.h" #ifndef __APPLE__ +#ifndef __linux__ #include <windows.h> +#else +#define TCHAR char +#endif #endif Render *renderer; @@ -60,7 +64,7 @@ static float LduDistance = 10.0/tan(0.005*pi/180); QString fixupDirname(const QString &dirNameIn) { -#ifdef __APPLE__ +#if defined( __APPLE__ ) || defined (__linux__) return dirNameIn; #else long length = 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor