Skip to content

Commit

Permalink
Update Qt doc links to 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Jan 4, 2024
1 parent 2d47414 commit 1ea8ab7
Show file tree
Hide file tree
Showing 49 changed files with 111 additions and 113 deletions.
2 changes: 1 addition & 1 deletion docs/source/developer/creating_tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ More dynamic content usually requires that the Task objects keeps some sort of
reference to the questionnaire during editing. The simplest way is to keep a
safe pointer to the Questionnaire (``QPointer<Questionnaire> m_questionnaire``)
but you can keep pointers to more detailed things too. (The task will not *own*
the Questionnaire. A `QPointer <http://doc.qt.io/qt-5/qpointer.html>`_ is
the Questionnaire. A `QPointer <https://doc.qt.io/qt-6.5/qpointer.html>`_ is
automatically set to zero when its referenced object is destroyed.)

Since ``FieldRef`` objects also maintain a **mandatory** flag, data input can
Expand Down
2 changes: 1 addition & 1 deletion docs/source/faq_known_problems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ How to upgrade Android
.. [#qtandroiapi]
http://doc.qt.io/qt-5/android-support.html
https://doc.qt.io/qt-6.5/android-support.html
2 changes: 1 addition & 1 deletion docs/source/to_do.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Client core

- Maybe implement pinch zoom for some subclasses of OpenableWidget, e.g.
MenuWindow and Questionaire. See
http://doc.qt.io/qt-5/qtwidgets-gestures-imagegestures-example.html
https://doc.qt.io/qt-6.5/qtwidgets-gestures-imagegestures-example.html

- QuAudioRecording: questionnaire element to record audio

Expand Down
20 changes: 10 additions & 10 deletions tablet_qt/camcops.pro
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# along with CamCOPS. If not, see <https://www.gnu.org/licenses/>.


# http://doc.qt.io/qt-5/qmake-project-files.html
# http://doc.qt.io/qt-5/qmake-variable-reference.html
# https://doc.qt.io/qt-6.5/qmake-project-files.html
# https://doc.qt.io/qt-6.5/qmake-variable-reference.html

message("+++ CamCOPS qmake starting.")

Expand All @@ -34,8 +34,8 @@ message("+++ CamCOPS qmake starting.")
# Use $(...) to read an environment variable at the time of make.
# Use $$... or $${...} to read a Qt project file variable.
# See
# - http://doc.qt.io/qt-4.8/qmake-advanced-usage.html#variables
# - http://doc.qt.io/qt-5/qmake-test-function-reference.html
# - https://doc.qt.io/qt-6.5/qmake-advanced-usage.html#variables
# - https://doc.qt.io/qt-6.5/qmake-test-function-reference.html
# Here, we copy an environment variable to a Qt project file variable:
# QT_BASE_DIR = $(CAMCOPS_QT6_BASE_DIR) # value at time of make

Expand Down Expand Up @@ -73,10 +73,10 @@ message("... QT_ARCH: $${QT_ARCH}")
# ALSO TRY:
# qmake -query # for the qmake of the Qt build you're using

# http://doc.qt.io/qt-5/qtmultimedia-index.html
# https://doc.qt.io/qt-6.5/qtmultimedia-index.html
# http://wiki.qt.io/Qt_5.5.0_Multimedia_Backends
# http://doc.qt.io/qt-4.8/qmake-variable-reference.html#qt
# http://doc.qt.io/qt-5/qtmodules.html
# https://doc.qt.io/qt-6.5/qmake-variable-reference.html#qt
# https://doc.qt.io/qt-6.5/qtmodules.html

QT += core # included by default; QtCore module
QT += gui # included by default; QtGui module
Expand Down Expand Up @@ -131,7 +131,7 @@ MOBILITY =
# ... http://stackoverflow.com/questions/14681012/how-to-include-openssl-in-a-qt-project
# ... but no effect? Not mentioned in variable reference (above).
# ... ah, here's the reference:
# http://doc.qt.io/qt-5/qmake-project-files.html
# https://doc.qt.io/qt-6.5/qmake-project-files.html
# LIBS += -lssl
# ... not working either? Doesn't complain, but ldd still shows that system libssl.so is in use

Expand Down Expand Up @@ -313,7 +313,7 @@ android {
CAMCOPS_ARCH_TAG = "android_armv8_64"
}

# http://doc.qt.io/qt-5/deployment-android.html#android-specific-qmake-variables
# https://doc.qt.io/qt-6.5/deployment-android.html#android-specific-qmake-variables
ANDROID_PACKAGE_SOURCE_DIR = "$${CAMCOPS_SOURCE_ROOT}/android"
message("ANDROID_PACKAGE_SOURCE_DIR: $${ANDROID_PACKAGE_SOURCE_DIR}")
# ... contains things like AndroidManifest.xml
Expand Down Expand Up @@ -416,7 +416,7 @@ isEmpty(CAMCOPS_ARCH_TAG) {
# To have the linker show its working:
# LIBS += "-Wl,--verbose"

equals(CAMCOPS_QT_LINKAGE, "static") { # http://doc.qt.io/qt-5/qmake-test-function-reference.html
equals(CAMCOPS_QT_LINKAGE, "static") { # https://doc.qt.io/qt-6.5/qmake-test-function-reference.html
message("Using static linkage from CamCOPS to Qt")
CONFIG += static
} else:equals(CAMCOPS_QT_LINKAGE, "dynamic") {
Expand Down
4 changes: 2 additions & 2 deletions tablet_qt/core/camcopsapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ CamcopsApp::CamcopsApp(int& argc, char* argv[]) :

CamcopsApp::~CamcopsApp()
{
// http://doc.qt.io/qt-5.7/objecttrees.html
// https://doc.qt.io/qt-6.5/objecttrees.html
// Only delete things that haven't been assigned a parent
delete m_network_gui_guard;
delete m_p_main_window;
Expand Down Expand Up @@ -1970,7 +1970,7 @@ void CamcopsApp::closeSubWindow()
// Ownership is returned to the application, so...
// - AH, NO. OWNERSHIP IS CONFUSING AND THE DOCS ARE DIFFERENT IN QT 4.8
// AND 5.9
// - From http://doc.qt.io/qt-4.8/qstackedwidget.html#removeWidget :
// - From https://doc.qt.io/qt-6.5/qstackedwidget.html#removeWidget :
// Removes widget from the QStackedWidget. i.e., widget is not deleted
// but simply removed from the stacked layout, causing it to be hidden.
// Note: Ownership of widget reverts to the application.
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/db/dbfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ bool execQuery(QSqlQuery& query, const QString& sql, const ArgList& args,
return success;
// The return value is boolean (success?).
// Use query.next() to iterate through a result set; see
// http://doc.qt.io/qt-4.8/sql-sqlstatements.html
// https://doc.qt.io/qt-6.5/sql-sqlstatements.html
}


Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/dbobjects/blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void Blob::makeIndexes()

void Blob::rotateCachedImage(int angle_degrees_clockwise) const
{
// http://doc.qt.io/qt-4.8/qtransform.html#rotate
// https://doc.qt.io/qt-6.5/qtransform.html#rotate
angle_degrees_clockwise %= 360;
if (angle_degrees_clockwise == 0 || m_image.isNull()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/dialogs/progressbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


// Prototypical use: modal, as per
// http://doc.qt.io/qt-5.7/qprogressdialog.html#details
// https://doc.qt.io/qt-6.5/qprogressdialog.html#details

class ProgressBox : public QProgressDialog
{
Expand Down
6 changes: 3 additions & 3 deletions tablet_qt/dialogs/scrollmessagebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void ScrollMessageBox::addButton(QAbstractButton* button,
{
m_button_box->addButton(button, role);
// The button box TAKES OWNERSHIP:
// http://doc.qt.io/qt-4.8/qdialogbuttonbox.html#addButton
// https://doc.qt.io/qt-6.5/qdialogbuttonbox.html#addButton
update();
}

Expand Down Expand Up @@ -243,8 +243,8 @@ QDialogButtonBox::ButtonRole ScrollMessageBox::forceEnumMD(
const QMessageBox::ButtonRole role)
{
// They are numerically identical:
// - http://doc.qt.io/qt-4.8/qdialogbuttonbox.html#ButtonRole-enum
// - http://doc.qt.io/qt-4.8/qmessagebox.html#ButtonRole-enum
// - https://doc.qt.io/qt-6.5/qdialogbuttonbox.html#ButtonRole-enum
// - https://doc.qt.io/qt-6.5/qmessagebox.html#ButtonRole-enum
return static_cast<QDialogButtonBox::ButtonRole>(role);
}

Expand Down
8 changes: 4 additions & 4 deletions tablet_qt/graphics/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ The Qt coordinate system
- Positive x is to the right.
- Positive y is DOWN. (This matches commonplace screen coordinates; the origin
is at the top left.)
http://doc.qt.io/qt-5.8/coordsys.html
https://doc.qt.io/qt-6.5/coordsys.html
- When you rotate a coordinate system, rotation angles are CLOCKWISE.
http://doc.qt.io/qt-5.8/qpainter.html#rotate
https://doc.qt.io/qt-6.5/qpainter.html#rotate
... so for a point (x=1, y=0), positive rotation moves it in the direction of
INCREASING y.
- But when you draw a pie, rotation angles are ANTICLOCKWISE, and zero degrees
is in the 3 o'clock position.
http://doc.qt.io/qt-5.8/qpainter.html#drawPie
https://doc.qt.io/qt-6.5/qpainter.html#drawPie
- Other ANTICLOCKWISE bits:
- QTranform::rotate
http://doc.qt.io/qt-5.8/qtransform.html#rotate
https://doc.qt.io/qt-6.5/qtransform.html#rotate
- Qt also uses a "positive ANTICLOCKWISE" system for its graphs, though that's
more obvious as it's mimicking standard graph geometry here.
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/layouts/flowlayouthfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ FlowLayoutHfw::FlowLayoutHfw(const int margin,
FlowLayoutHfw::~FlowLayoutHfw()
{
// RNC: crash here relating to double deletion.
// - From http://doc.qt.io/qt-4.8/layout.html :
// - From https://doc.qt.io/qt-6.5/layout.html :
// "Note: Widgets in a layout are children of the widget on which the
// layout is installed, not of the layout itself. Widgets can only have
// other widgets as parent, not layouts."
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/lib/css.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ QString colourCss(const QColor& colour)

QString penStyleCss(const QPen& pen)
{
// http://doc.qt.io/qt-4.8/qpen.html#pen-style
// https://doc.qt.io/qt-6.5/qpen.html#pen-style
// https://www.w3schools.com/cssref/pr_border-style.asp
switch (pen.style()) {
case Qt::NoPen:
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/lib/errorfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void fatalError(const QString& error)
{
const QString msg = "ABORTING: " + error;
// qFatal() will kill the app
// http://doc.qt.io/qt-4.8/qtglobal.html#qFatal
// https://doc.qt.io/qt-6.5/qtglobal.html#qFatal
// If the first argument is not a string literal:
// "format not a string literal and no format arguments"
// https://bugreports.qt.io/browse/QTBUG-8967
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/lib/idpolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "idpolicy.h"
#include <QObject>
#include <QRegularExpression> // replacing QRegExp; http://doc.qt.io/qt-5.7/qregexp.html#details
#include <QRegularExpression> // replacing QRegExp; https://doc.qt.io/qt-6.5/qregexp.html#details
#include "common/dbconst.h"
#include "common/design_defines.h"
#include "common/preprocessor_aid.h"
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/lib/uifunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ QString textCSS(const int fontsize_pt,
css += QString("font-size: %1pt;").arg(fontsize_pt);
}
// Only pt and px supported
// http://doc.qt.io/qt-5.7/stylesheet-reference.html
// https://doc.qt.io/qt-6.5/stylesheet-reference.html
if (bold) {
css += "font-weight: bold;";
}
Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/menu/testmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void TestMenu::doneSeeConsole()
void TestMenu::testProgress()
{
qDebug() << Q_FUNC_INFO << "start";
// http://doc.qt.io/qt-4.8/qprogressdialog.html#details
// https://doc.qt.io/qt-6.5/qprogressdialog.html#details
// http://stackoverflow.com/questions/3752742/how-do-i-create-a-pause-wait-function-using-qt
const int num_things = 100;
QProgressDialog progress(
Expand Down
4 changes: 2 additions & 2 deletions tablet_qt/notes/compilation_android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ A. Rebuild Qt and everything else. Error has gone away.
Q. Plugin class name could not be determined for plugin 'qtforandroid'
... or other similar errors under Linux
... which relate to building Qt statically
See http://doc.qt.io/qt-5/plugins-howto.html#static-plugins
See https://doc.qt.io/qt-6.5/plugins-howto.html#static-plugins
https://bugreports.qt.io/browse/QTBUG-32618
... fixed? Unresolved?

Expand Down Expand Up @@ -171,7 +171,7 @@ Q. [from androiddeployqt] No platform plugin, neither libqtforandroid.so or
... in updateAndroidManifest
... based on options.qtDependencies
- one option might be to use ANDROID_DEPLOYMENT_DEPENDENCIES and take full
manual control; http://doc.qt.io/qt-5/deployment-android.html
manual control; https://doc.qt.io/qt-6.5/deployment-android.html

So is the answer that Android build should be DYNAMIC?
"Dynamic" here still means that the Qt libraries are bundled into an APK, so
Expand Down
4 changes: 2 additions & 2 deletions tablet_qt/notes/compilation_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sudo apt install \

SEE ALSO THE END OF build_qt.py

[1] http://doc.qt.io/qt-5/linux.html#requirements-for-development-host
[1] https://doc.qt.io/qt-6.5/linux.html#requirements-for-development-host
[2] probably: https://wiki.qt.io/QtWayland#Desktop_build_instructions
[3] qtimageformats/src/plugins/imageformats/webp/webp.pro
[4] see build_qt.py
Expand Down Expand Up @@ -230,7 +230,7 @@ A. You are building with an edition of Qt configured with "-system-xcb" rather
than "-qt-xcb". (Possibly because "-qt-xcb" seems to be buggy under Qt
5.1.0; see https://bugreports.qt.io/browse/QTBUG-64928 .)

See http://doc.qt.io/qt-5/linux-requirements.html and run
See https://doc.qt.io/qt-6.5/linux-requirements.html and run

sudo apt install \
libfontconfig1-dev \
Expand Down
4 changes: 2 additions & 2 deletions tablet_qt/notes/database_performance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ NOTES
- https://github.com/sqlcipher/sqlcipher/issues/67

- In Qt, you MUST use a new connection for each thread.
http://doc.qt.io/qt-5/threads-modules.html#threads-and-the-sql-module
https://doc.qt.io/qt-6.5/threads-modules.html#threads-and-the-sql-module

- Differentiating a read query from a write query:

Expand Down Expand Up @@ -190,4 +190,4 @@ Then, for >1 database:

See also:
https://woboq.com/blog/introduction-to-lockfree-programming.html
http://doc.qt.io/qt-5/qtcore-threads-waitconditions-example.html
https://doc.qt.io/qt-6.5/qtcore-threads-waitconditions-example.html
2 changes: 1 addition & 1 deletion tablet_qt/notes/layout_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ for the following layouts:
- GridLayoutHfw -- replacements for QGridLayout.

- FlowLayoutHfw -- replacement for Qt's FlowLayout
(http://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html).
(https://doc.qt.io/qt-6.5/qtwidgets-layouts-flowlayout-example.html).

and the following widgets:

Expand Down
2 changes: 1 addition & 1 deletion tablet_qt/notes/overall_design.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CLIENT ARCHITECTURE
run even these over the web; e.g. Qt applications are starting [2017] to
support being served over VNC [*]).

[*] http://doc.qt.io/qt-4.8/qt-embedded-vnc.html
[*] https://doc.qt.io/qt-6.5/qt-embedded-vnc.html
https://raspberrypi.stackexchange.com/questions/23221/running-a-qt5-application-not-full-screen-use-vnc
https://stackoverflow.com/questions/24517954/running-a-qt-app-over-the-web
https://stackoverflow.com/questions/3240633/web-based-vnc-client
Expand Down

0 comments on commit 1ea8ab7

Please sign in to comment.