Commit Graph

3655 Commits

Author SHA1 Message Date
Justin Clift d123fc9344 Merge pull request #2911 from Gitoffthelawn/patch-1
Fixes, consistency improvements, and link conversion to HTTPS
2021-11-28 23:29:28 +11:00
Gitoffthelawn 662de9fd8d Updated per feedback 2021-11-28 04:28:12 -08:00
Gitoffthelawn bb9d8743bc Fixes and link conversion to HTTPS
Just a small thank you for this great project.
2021-11-27 18:53:33 -08:00
Martin Kleusberg 83c159cbbf Fix links to Travis in README.md 2021-11-26 20:56:04 +01:00
Chris Locke b42b933704 Update README.md 2021-10-16 11:43:10 +01:00
Chris Locke 6fd2ef266a Amended macOS requirements
3.12.2 doesn't work on macOS 10.13, but 3.12.0 does on 10.12
2021-10-16 11:41:14 +01:00
mgrojo cb167a3837 SVG Icons: remove validation warnings about Inkscape extension
These were added as own work in 36054cd767

Cleaned using Inkscape "File > Save as... > Normal SVG".

See related issue #2833
2021-10-10 13:11:59 +02:00
mgrojo 41fbf1481e SVG icons: validation error fixed in icon
Fixed with Inkscape "File > Save as... > Normal SVG".

See related issue #2833
2021-10-10 13:11:59 +02:00
Martin Kleusberg 655a8be45e Fix build after 0b1ff64138 2021-09-11 12:11:23 +02:00
Martin Kleusberg a29f616365 Try to fix Windows build
Windows builds were broken by 38907ccaea
which removed the xstr macro.

See issue #2810.
2021-09-11 12:08:34 +02:00
Martin Kleusberg 0b1ff64138 Fix browsing tables without rowid and multiple primary key columns
This fixes a possible crash when browsing a table without a rowid column
and with multiple columns in its primary key. To work with these tables
we need to pretend it still has only one primary key column (as in the
rowid case) and to do so we combine all the values of the primary key
columns into a single value. For simplicity we were using the JSON
library (which we are using anyway in the project) to achieve this,
however this turned out to be problematic for some values. This commit
introduced a new, more robust approach to combine multiple values into a
single value.

See issue #2832.
2021-09-11 11:37:49 +02:00
Martin Kleusberg a302128d2e Simplify dependencies and remove unneeded dependencies from tests
This moves the code to remove comments from SQL statements from the
SqliteTableModel class to Data.cpp making it a free function. This
removes some dependencies from the SqliteTableModel class with all its
dependencies.

Also simplify the CMakeLists.txt file for the tests by removing all the
dependencies which are not really required.
2021-08-22 10:31:31 +02:00
Martin Kleusberg 302ade704c build: Add apt-get update to Github action 2021-08-21 22:02:45 +02:00
Martin Kleusberg b8ffe16931 Add status badge for Github action 2021-08-21 22:00:00 +02:00
Tristan Stenner 38907ccaea Let CMake generate version.h 2021-08-21 21:34:47 +02:00
Tristan Stenner c4ebc208ba Add Github Actions config for Ubuntu 20.04 2021-08-21 20:35:09 +02:00
Tristan Stenner 320c65d299 Raise minimum CMake version, add CPack config for package generation 2021-08-21 20:34:36 +02:00
Martin Kleusberg 4a62f41cb8 build: Remove qmake project files
This deletes all qmake project files. To simplify things and in
preparation for Qt6 support we are now only supporting cmake builds.
2021-08-21 20:01:53 +02:00
Justin Clift f867f98cd6 Move the macOS nightly build logs too 2021-08-21 20:36:46 +10:00
Justin Clift 38be4fe7e5 Shell script used on the nightly build server to move builds into subdirs
Runs automatically from cron every month, on the 14th day of each month.

It's pretty simple, but should do the job
2021-08-21 20:31:48 +10:00
Martin Kleusberg 42fc608614 build: Further fixes to the fixes of the cmake build of the nightlies 2021-08-19 21:00:15 +02:00
mgrojo 9ba1a2edc7 Execute SQL editor: Use tabs for indentation
The QScintilla property is used to provide a new setting.

See issue #2800
2021-08-15 17:35:54 +02:00
Martin Kleusberg f4416c2ee0 build: Fix a couple of issues in the macOS build script
In commit 33ee7364f7 we have started
moving the macOS build scripts towards using cmake instead of qmake.
This commit fixes some issues introduced in that commit.

Do not call lupdate and lrelease any more because they rely on the qmake
project files and are called by cmake anyway.

Make sure cmake is reinstalled via brew after removing any installed
brew packages.

Set a hint to the Qt5 library path so cmake should be able to find it.
2021-08-15 15:34:12 +02:00
Martin Kleusberg c54304cbdb build: Remove any mentions of qmake from the documentation
This removes all mentions of the qmake build system from our build
instructions because we are planning to remove support for qmake in the
near future. Building using cmake should work fine on all platforms.
2021-08-13 15:54:24 +02:00
Martin Kleusberg 060e925074 build: Make CMakeLists.txt easier to use
This adds the moc header files to the dependencies of the executable in
the cmake project so they show up in their proper location in QtCreator.
This makes it more pleasant to use the cmake files as a QtCreator
project file.

Also rework the CMakeLists.txt file a bit by fixing whitespace issues,
rearranging some blocks and unifying the code style a bit.
2021-08-13 14:47:06 +02:00
Martin Kleusberg 33ee7364f7 build: Use cmake for macOS builds
This is a first attempt to use cmake instead of qmake for building our
nightlies on macOS. We are using cmake on most platforms and it would be
easier for us to only maintain one build system. Because support for
qmake is dropped in Qt6 anyway it makes sense to transition to only
using cmake in the near-ish future.

Please note that this commit has been assembled in a mostly blind
fashion. I would be surprised if this worked without further tweaking.
2021-08-12 22:24:46 +02:00
Nikolay Zlatev 183d8f7e34 ColumnDisplayFormatDialog: Adjusts the size of the widget. 2021-08-12 16:59:06 +03:00
Martin Kleusberg 254df474e1 travis: Make sure to install the QtSvg libraries 2021-08-11 20:57:51 +02:00
Martin Kleusberg 6508974c54 travis: Update to Ubuntu bionic 2021-08-11 11:49:05 +02:00
dnuzhdin 6448ed7eac Add assignment of ON CONFLICT clause into GUI 2021-08-10 14:16:20 +02:00
Martin Kleusberg ef87dc63da Fix changes to constraints in Edit Table dialog not always being applied
Changes to constraints in the Edit Table dialog were not always
correctly applied, especially when only constraints were changed. This
was because we did not make deep copies of the constraint objects so
instead of copied we were changing the original constraints. This meant
that the ALTER TABLE code we have in place thought that there were no
changes made in compariron to the original table.
2021-08-10 14:15:58 +02:00
mgrojo dc8557110d Settings: fix file check in "-S" option for Windows
In Windows the file has to be opened in text mode to get line ending
conversion so the check for the first line works.

See issue #2791
2021-08-09 21:57:55 +02:00
mgrojo 128babb602 Execute SQL: add Ctrl+Shift+T for "Open SQL file(s)"
It is already used by QScintilla for "Copy current line", which is moved
to Ctrl+Shift+Insert

See issue #2798
2021-08-09 14:16:00 +02:00
mgr d5937c6d71 Automatic editor mode: change default for SVG to Image Viewer
This will give precedence to viewing SVG images over editing them as XML.
I suppose it makes sense, because most users will load images from disk
or using an application and will generally want to view them and not
editing them.

This also makes more sense for 4e5f117851
2021-07-23 20:06:33 +02:00
Justin Clift 21f483abd0 Merge pull request #2778 from tudo75/master
Update sqlitebrowser.desktop to work with Plank
2021-07-23 00:34:30 +10:00
Nicola Tudino 2d7f97494a Update sqlitebrowser.desktop to work with Plank
Added StartupWMClass=sqlitebrowser to fix issues of the app launcher with Plank dock bar
2021-07-22 01:22:05 +02:00
mgrojo 6bdacf6595 CLI: Reuse --table as table name for a CSV Import
This allows user to specify the destination table of the import from the
command line.

See issue #2772
2021-07-18 18:36:33 +02:00
mgrojo fd02005913 Avoid "unused parameter" warning 2021-07-18 17:01:18 +02:00
mgrojo 8d0d6e3213 Icon set details in About dialog
It should have gone with 36054cd767
2021-07-18 17:00:23 +02:00
mgrojo 532457edb7 Workaround for Qt bug shown in issues #2763 and #2490
- Adjust fixed sizes in EditTableDialog so the bug is less visible
- Resize columns to contents after item insertion, so it is not resized
to contents when only the header is present.
2021-07-18 16:33:24 +02:00
Nikolay Zlatev 23a597bcd1 ImageViewer: Improve scaling logic 2021-07-15 17:18:29 +03:00
Nikolay Zlatev f749f38fb0 ImageViewer: Add mouse wheel zoom 2021-07-15 14:47:53 +03:00
Nikolay Zlatev 8bc9d3320b ImageViewer: Use QScrollArea::viewport for boundaries check.
QScrollArea::viewport is now used for boundaries check and
for image pan (m_pan_mode).
This should provide more accurate event filtering (content only)
2021-07-15 11:47:02 +03:00
Nikolay Zlatev 2df29fad89 AboutDialog: Change layout to fit large font better 2021-07-14 13:50:23 +03:00
Nikolay Zlatev 67a70dd263 Merge pull request #2767 from sandman7920/master
SpatiaLite to SVG display format
2021-07-14 09:51:04 +03:00
Nikolay Zlatev 4a0ba0d51a ColumnDisplayFormatDialog: geomToSVG change default resolution to 640 2021-07-14 09:48:46 +03:00
Nikolay Zlatev c4dd27e034 ImageViewer: Code cleanup 2021-07-14 09:34:24 +03:00
Nikolay Zlatev d62ccb1a6d ImageViewer: Added mouse pan mode 2021-07-13 19:46:20 +03:00
Nikolay Zlatev f97d1013cd ImageViewer: Change image alignment to center 2021-07-13 17:39:38 +03:00
Nikolay Zlatev d2e957cbdf ImageViewer: Keep aspect ratio for a scaled image 2021-07-13 17:27:09 +03:00