Re: [Qbs] Conditionally adding a file tag

2020-07-29 Thread Alberto Mardegan
Hi Ulrich, On 29/07/20 10:07, Jochen Ulrich wrote: > I guess the issue here is that FileTaggers are disabled in this case: > >> File taggers are disabled if file tags are set explicitly in a product or >> group. >> For example, the "cpp" tag is not attached to the .cpp files in the >>

[Qbs] Conditionally adding a file tag

2020-07-28 Thread Alberto Mardegan
Hi all! I have a Product consisting of static files (images, QML and JSON); you can see the base item here: https://gitlab.com/mardy/mappero/-/blob/fd935d58a55523bf7d6b281f2728f055704a2b26/qbs/imports/QmlPlugin.qbs and a trivial QBS file in which it's used:

Re: [Qbs] Android and shared libraries in APK

2020-07-11 Thread Alberto Mardegan
On 11/07/20 13:18, Alberto Mardegan wrote: > I guess that the desired outcome is that there is only one shared > library whose name matches the product.name; is my understanding correct? This appears to be working for me: https://codereview.qt-project.org/c/qbs/qbs/+/307513 Ciao, A

[Qbs] Android and shared libraries in APK

2020-07-11 Thread Alberto Mardegan
Hi all, sorry for the week-end spamming :-) My project consists of an executable file and two shared libraries. The Android build is failing right at the end, with this message: ERROR: Qt applications for Android support only one native binary per package. On the other hand, the documentation

[Qbs] Android API level

2020-07-11 Thread Alberto Mardegan
Hi all, While trying to build one of my existing projects for Android, I was getting a build error: == In file included from /home/mardy/Android/Sdk/ndk/20.1.5948944/sources/android/support/include/math.h:32:

Re: [Development] Applications using -fno-rtti

2020-06-25 Thread Alberto Mardegan
On 21/06/20 19:13, Thiago Macieira wrote: > A set of patches were dropped from the middle of the series, implementing the > vfork I mentioned. So the patch needs to be rebased and adjusted. Other than > that, it's fine. Let's try: https://codereview.qt-project.org/c/qt/qtbase/+/305791/1 Ciao,

Re: [Development] Applications using -fno-rtti

2020-06-21 Thread Alberto Mardegan
On 20/06/20 23:45, Thiago Macieira wrote: > No, because it won't catch this: > > class MyProcess : QProcess > { > protected: > virtual void setupChildProcess(); > }; > > Note the lack of Q_OBJECT. But what is the harm if we don't catch that? It's still better than a crash, isn't it? Also,

Re: [Development] Applications using -fno-rtti

2020-06-20 Thread Alberto Mardegan
On 20/06/20 21:42, Konstantin Tokarev wrote: > Comparing metaObject() with staticMetaObject() is wrong because it would fail > even for QProcess. No, I tried, it seems to work as expected: == #include #include class BaseClass: public QObject { Q_OBJECT }; class

Re: [Development] Applications using -fno-rtti

2020-06-20 Thread Alberto Mardegan
On 20/06/20 22:21, Alexey Minnekhanov wrote: > > сб, 20 июн. 2020 г. в 22:01, Alberto Mardegan > mailto:ma...@users.sourceforge.net>>: > > we only want to know if we are a subclass of QProcess. > > QObject::inherits(..) ? Sorry, my wording was imprecise: we wan

Re: [Development] Applications using -fno-rtti

2020-06-20 Thread Alberto Mardegan
On 20/06/20 21:42, Konstantin Tokarev wrote: > Comparing metaObject() with staticMetaObject() is wrong because it would fail > even for QProcess. I didn't try, but why would it fail? > OTOH, using qobject_cast would handle classes derived > from QProcess correctly, unlike code with typeid().

[Development] Applications using -fno-rtti

2020-06-20 Thread Alberto Mardegan
Hi all! A couple of days ago a bug was filed against a project of mine, which has been built with -fno-rtti since Qt4 times: https://bugzilla.opensuse.org/show_bug.cgi?id=1172904 The bug, it appears, is a crash in QProcess due to the use of typeid(), which was introduced in Qt 5.15:

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-27 Thread Alberto Mardegan
On 23/04/20 14:57, Ville Voutilainen wrote: > QVector is certainly closer to std::vector than QList is to std::list. > Vector isn't a really good name either, > for people recently taught in elementary school math, or for java > programmers coming in. > For C++ programmers, it gives a much better

Re: [Qbs] Mingw issues

2020-04-12 Thread Alberto Mardegan
On 07/04/20 23:04, Richard Weickelt wrote: > I think qbs-setup-toolchains got confused by the "." in the toolchain > prefix. It is usually not expected. The heuristics have been improved in Qbs > 1.16. Could you try if it works with the release candidate of Qt Creator > 4.12 and otherwise submit a

[Qbs] Binary stripping

2020-04-09 Thread Alberto Mardegan
Hi all! Sorry for spamming the list :-) I noticed that binaries generated by mingw are quite large, and when I ran the "strip" command on them, the size was reduced by more than half, without losing functionality. I'm building my application with the `config:release` option. Shouldn't that run

Re: [Qbs] Changing the default value of consoleApplication

2020-04-08 Thread Alberto Mardegan
On 08/04/20 13:21, Oswald Buddenhagen wrote: > i'm not convinced. qt.widgets and qt.quick could reasonably do that, but > gui is perfectly suitable for console-only apps. mmm... you are right, there might be a QtGuiApplication which uses QImage to do some processing but never creates a window.

Re: [Qbs] Q_INIT_RESOURCE on Windows

2020-04-08 Thread Alberto Mardegan
On 08/04/20 00:33, Иван Комиссаров wrote: > From the Qt documentation: > > "The Q_INIT_RESOURCE() macro is necessary on some platforms for > resources stored in a *static* library.» Oops! Sorry for the noise, and thanks for the pointer! :-) Ciao, Alberto -- http://www.mardy.it - Geek in un

[Qbs] Changing the default value of consoleApplication

2020-04-07 Thread Alberto Mardegan
Hi there! I've recently built a Windows application with QBS, and was a bit surprised that it was built as a console application (the terminal opened when running it). Would anyone object if I submit a change to the QtGuiApplication item, so that it unconditionally sets the `consoleApplication`

LMDB: sync'ing to disk and flash wear

2020-04-06 Thread Alberto Mardegan
Hi all! I'm trying to understand the impact that a LDMB database will have on the flash wear of an embedded device. In order to minimize disk writes, I'm keeping a DB open all the time, and I'd like to have the changes written into the physical storage only when mdb_env_sync() is called (near

Re: [Qbs] Mingw issues

2020-04-06 Thread Alberto Mardegan
On 05/04/20 22:48, Richard Weickelt wrote: > Does your toolchain setup work without Qt? Maybe build a plain c++ hello > world app. > > Is the deduced qbs.architecture correct? The architecture is unset (I cannot see it with `qbs config`, at least). But looking at the configuration I understood

[Qbs] Mingw issues

2020-04-05 Thread Alberto Mardegan
Hi all! I've a feeling I've met this problem before, but I cannot remember what the solution was. So here I am again :-) I'm trying to build an application for Linux, using QBS with MXE. I've setup my toolchain like this: MXE_DIR=/mnt/Lavoro/mxe/mxe-qt5.9 qbs setup-toolchains

Re: [apparmor] Generating the profile cache on a different machine

2020-04-02 Thread Alberto Mardegan
Hi, On 02/04/20 16:48, intrigeri wrote: > At Tails we do ship a binary, compiled policy in our live system: > > > https://salsa.debian.org/tails-team/tails/-/blob/master/config/chroot_local-hooks/99-cache-AppArmor-policy > >

[apparmor] Generating the profile cache on a different machine

2020-04-02 Thread Alberto Mardegan
Hi all! I'm trying to speed up the first device boot by generating a cache of the profiles. The target machine is running a Yocto image, so it would feel natural if the profile cache is also generated by Yocto. My first question is whether this is actually doable: is the binary format of a

[PATCH] D15469: Expose cxx constructor and method properties through libclang and python bindings.

2020-03-31 Thread Alberto Mardegan via Phabricator via cfe-commits
mardy added a comment. In D15469#396582 , @jbcoe wrote: > I'll submit a new patch for `isDeleted` on its own. The rest of this patch > seems uncontentious. > > I hope to find time this week to make the changes. Was the patch for isDeleted ever

Re: [Development] Debian packaging from Git snapshots (qtsystems, qtfeedback, qtpim)

2020-03-16 Thread Alberto Mardegan
end on QtPIM at the moment.  Alberto > Mardegan has done a lot of work in the QtPIM area previously, and might > be a good candidate if his commitments allow... I'm certainly willing to help, even though I'm not sure about how much "significant time" is needed. On the other ha

Re: [Qbs] Using QBS with an nonexistent $HOME

2020-03-03 Thread Alberto Mardegan
On 29/02/20 19:17, Wookey wrote: > I have written a wiki page about using QBS to build debian packages: > https://wiki.debian.org/Qbs > > I deal with QBS's desire to store a profile in the home directory by setting > --settings-dir to either /tmp (potential security risk as other can change >

[Qbs] Using QBS with an nonexistent $HOME

2020-02-28 Thread Alberto Mardegan
Hi there! I'm trying to build a Debian/Ubuntu package of a QBS project in launchpad.net; the site uses sbuild, which has the peculiarity of setting "HOME=/sbuild-nonexistent". I'm stuck at the step "qbs setup-qt", which fails with this error: Setting up Qt profile 'qt5' failed: Cannot create

Re: [Development] The future of smart pointers in Qt API

2020-02-12 Thread Alberto Mardegan
On 12/02/20 15:20, Vitaly Fanaskov wrote: >> AFAIK, we don't have a procedure to make project-level decisions by majority >> vote. > True. We're discussing now. The goal here is to take people opinions and > arguments into account before making a decision. The problem I see, is that in your

Re: [Qbs] Passing paths to properties

2020-02-04 Thread Alberto Mardegan
On 03/02/20 15:37, Christian Kandeler wrote: >> >> This and in addition - since the documentation already calls the property a >> "path" [1] - introduce a path property type in Qbs which does that >> automatically for us in its toString() method. > >

Re: [Development] The future of smart pointers in Qt API

2020-02-04 Thread Alberto Mardegan
On 04/02/20 16:55, Vitaly Fanaskov wrote: > But if you see API like this: > > std::unique_ptr someAPI(); > > You have much more information about managed object just by reading the > code. This is also much easier to understand what can or cannot be done > with the returned value in the

Re: [Development] The future of smart pointers in Qt API

2020-02-04 Thread Alberto Mardegan
Going back to the original question again, as I'm not sure I agree with this claim: On 31/01/20 13:07, Vitaly Fanaskov wrote: > Smart pointers are for sure much better to use than raw pointers for > many reasons. They manage lifetime automatically, show ownership > semantic, and make code

Re: [Development] The future of smart pointers in Qt API

2020-02-03 Thread Alberto Mardegan
On 03/02/20 19:56, Jason H wrote: > [...] As a result, the code of a Qt-using program > should be readable by average developers not big into C++. [...] I agree with all what you said; I'm just quoting this sentence because it's easy to underestimate this. Ciao, Alberto --

Re: [Development] The future of smart pointers in Qt API

2020-02-02 Thread Alberto Mardegan
On 02/02/20 21:55, Giuseppe D'Angelo via Development wrote: > On 02/02/2020 17:38, Alberto Mardegan wrote: >> Believe it or not :-) I find std::shared_ptr easier to use when passing >> pointers to and from functions. And I never needed to put them into an >> array. > >

Re: [Development] The future of smart pointers in Qt API

2020-02-02 Thread Alberto Mardegan
On 01/02/20 15:32, Giuseppe D'Angelo via Development wrote: > Il 01/02/20 12:37, Alberto Mardegan ha scritto: >> Do we need to have such a counterpart? In my work experience, when I'm >> not allowed to use Qt and am restricted to the STL, all the times I had >> to use std::

Re: [Development] The future of smart pointers in Qt API

2020-02-02 Thread Alberto Mardegan
On 01/02/20 15:02, Giuseppe D'Angelo via Development wrote: > Il 01/02/20 12:44, Alberto Mardegan ha scritto: >> On 01/02/20 02:46, Giuseppe D'Angelo via Development wrote: >>> About QUniquePointer: what's the point of reinventing std::unique_ptr >>> under a differe

Re: [Development] The future of smart pointers in Qt API

2020-02-01 Thread Alberto Mardegan
On 01/02/20 02:46, Giuseppe D'Angelo via Development wrote: > About QUniquePointer: what's the point of reinventing std::unique_ptr > under a different name? A Qt-ish API! > * Is it just going to be an alias, to be more Qtish? Then why > QSharedPointer is NOT going to be an alias? > > * Is it

Re: [Development] The future of smart pointers in Qt API

2020-02-01 Thread Alberto Mardegan
On 31/01/20 23:04, Ville Voutilainen wrote: > On Fri, 31 Jan 2020 at 21:23, Alberto Mardegan >> >> I still have trouble understanding why std::unique_ptr is called like >> this, whereas I could immediately understand what QScopedPointer does >> even before reading i

[Qbs] Passing paths to properties

2020-01-31 Thread Alberto Mardegan
Hi there! I was trying to customize the location of my Android resources within a project, by playing with the resourcesDir and sourceSetDir properties. It took me a while (and a look at the QBS Android.sdk module sources) to realize that I should pass an *absolute* path to these properties.

Re: [Development] The future of smart pointers in Qt API

2020-01-31 Thread Alberto Mardegan
Old man here: On 31/01/20 13:07, Vitaly Fanaskov wrote: > But how to use them in the API and which way is preferable is still > unclear. There are two main options we have: > > 1) Use std::*  smart pointers as-is. > > 2) Add Qt-style wrappers around std::* smart pointers and move old >

Re: [Development] Changes to Qt offering

2020-01-29 Thread Alberto Mardegan
On 29/01/20 19:02, Volker Hilsheimer wrote: > You obviously don’t trust that TQtC will treat the data the online-installer > either demands or requires with the appropriate confidence. So, shouldn't you > build Qt from sources? Your IP address is PII, after all. Why did you trust > that The Qt

Re: [Development] Changes to Qt offering

2020-01-29 Thread Alberto Mardegan
On 29/01/20 13:02, Edward Welbourne wrote: > Clarification: we'll be moving to "all commits land first on dev and are > cherry-picked out to other branches that need them" in place of our > present merge-based module. Where Cristián says "all those patches will > be on Gerrit", they'll be on dev

Re: [Development] Changes to Qt offering

2020-01-28 Thread Alberto Mardegan
On 27/01/20 17:34, Lars Knoll wrote: > The Qt Company has done some adjustments to the Qt will be offered in the > future. Please check out https://www.qt.io/blog/qt-offering-changes-2020 . [...] > None of these changes should affect how Qt is being developed. There won’t be > any changes to

Re: [Qbs] Error after running tests

2020-01-15 Thread Alberto Mardegan
On 14/01/20 22:56, Jochen Ulrich wrote: > So instead of > $ qbs run -p check > > you should do > $ qbs build -p check Oh, indeed, I should have known better! :-) Thanks a lot! Ciao, Alberto ___ Qbs mailing list Qbs@qt-project.org

[Qbs] Error after running tests

2020-01-14 Thread Alberto Mardegan
Hi there! I'm using the AutotestRunner to run the unit tests in my project [1]. The tests run successfully, but then QBS tries to install them (why?) and fails: === $ qbs project.enableCoverage:true project.buildTests:true [...] $ qbs run -p check Restoring build graph

Re: [Qbs] Qbs 1.15.0 released

2020-01-02 Thread Alberto Mardegan
Hi Richard, On 02/01/20 14:20, Richard Weickelt wrote: > I'd like to announce the release of Qbs 1.15.0. Source and binary > packages as well as a change log can be found at > https://download.qt.io/official_releases/qbs/1.15.0/. > This release of Qbs is also shipped as part of Qt Creator 4.11.0.

Re: [Qbs] Deployment and dependency bundling

2019-12-28 Thread Alberto Mardegan
Ho Oswald, On 27/12/19 21:24, Oswald Buddenhagen wrote: > you're mixing up two separate issues. > > "deployment" (you actually mean dependency embedding) is just a special > form of "linking" dependencies. you should be able to make a fully > static build or a bundle with embedded dlls and

Re: [Qbs] Deployment and dependency bundling

2019-12-27 Thread Alberto Mardegan
On 27/12/19 15:15, Oswald Buddenhagen wrote: > dependency embedding should be a property of the Depends item (based on > https://bugreports.qt.io/browse/QBS-585). the way this is actually > handled is platform-dependent and needs to be properly abstracted >

Re: [Qbs] Deployment and dependency bundling

2019-12-23 Thread Alberto Mardegan
On 28/11/19 23:08, Alberto Mardegan wrote: > Whether one prepares macOS bundles, AppImage files of MSI installers, > one has to go through the dependency collection step, which is largely > similar for all platforms. To be more explicit, I'm referring to the > kind of job t

Re: [Development] QHash for Qt 6

2019-12-23 Thread Alberto Mardegan
On 20/12/19 13:47, Giuseppe D'Angelo via Development wrote: > Just to be devil's advocate, there is... As much as it's fun and > everything implementing a container, just using std::unordered_map would > have minimal effort on our side ("someone else's problem", and it's not > even a random 3rd

[Launchpad-users] Getting the distribution series in a recipe

2019-12-08 Thread Alberto Mardegan
Hi there! Inside a recipe I can use several useful variables, specified in [1]. Now, my project needs different packaging for different distribution series, so I was thinking to store the debian packaging in branches named like "packaging-xenial" and "packaging-bionic", and then have the recipe

Re: Imaginario, an F-Spot lookalike

2019-12-04 Thread Alberto Mardegan via f-spot-list
Hi Stephen, On 04/12/19 05:41, Stephen Shaw wrote: > Thanks for the email. Very interesting. I've recently started working > a fair bit on FSpot again and modernizing the code base more. I'm > working on removing the GNOME specific dependencies which are largely > deprecated anyways and trying to

Imaginario, an F-Spot lookalike

2019-12-03 Thread Alberto Mardegan via f-spot-list
Hi all! I do realize that this message is somewhat spammy, but I hope it can be of interest to many F-Spot users, and I'm sure it will trigger a boost in F-Spot development, leading to the so long waited release. :-) During the past years, I've written a photo manager application, Imaginario.

[Qbs] Deployment and dependency bundling

2019-11-28 Thread Alberto Mardegan
Hi again :-) Whether one prepares macOS bundles, AppImage files of MSI installers, one has to go through the dependency collection step, which is largely similar for all platforms. To be more explicit, I'm referring to the kind of job that on macOS is performed by the macdeployqt tool, and that

Re: [Qbs] Module adding source files to a project

2019-11-28 Thread Alberto Mardegan
Hi Richard, On 28/11/19 01:17, Richard Weickelt wrote: > Ideally, I think, the user would just invoke some tool and use a prebuilt > binary and not need to build the run-time from source. If building from > source is required, let the user install AppImageKit somewhere and just > point Qbs to the

[Qbs] Module adding source files to a project

2019-11-27 Thread Alberto Mardegan
Hi there! I'd like to write a QBS module to package Linux applications into the AppImage format. This is a format in which the all application's files (and non-trivial dependencies) are packed into a single executable file, which, when executed, unpacks the application data by mounting into a

Re: [Qbs] Understanding installation rules

2019-11-18 Thread Alberto Mardegan
On 19/11/19 00:27, Richard Weickelt wrote: [...] > Does it work with the change suggested above? Yes. Wow. Thanks :-) Alberto -- http://www.mardy.it - Geek in un lingua international ___ Qbs mailing list Qbs@qt-project.org

[Qbs] Understanding installation rules

2019-11-18 Thread Alberto Mardegan
Hi all! About a couple of weeks ago I posted a message to this list about a module I've written to handle freedesktop.org desktop files. I thought it was working really well, until I noticed the following problem: if I manually delete the directory tree which I was as installRoot and I run QBS

Re: [nikola-discuss] Adding a header to the home page

2019-09-09 Thread Alberto Mardegan
Hi Roberto! On Monday, September 9, 2019 at 11:21:15 PM UTC+3, Roberto Alsina wrote: > > You could create a template just for that page and add a extra_head block > in it. > Yes, I though of creating a template for my page, but how do I apply it? I don't have a source page to apply it to,

[nikola-discuss] Adding a header to the home page

2019-09-09 Thread Alberto Mardegan
Hi there! I need to add a certain element inside the section of my homepage, but I couldn't find out how it works. For the time being I've added the header in the EXTRA_HEAD_DATA variable in my conf.py, and while it works, it is adding the header to all pages of my site. That's not a huge

Re: [Development] Assistant WebKit/WebEngine support

2019-06-27 Thread Alberto Mardegan
On 27/06/19 14:14, Bastiaan Veelo wrote: > > However, it seems that most web browsers that implemented their own > browser tech have ditched those in favour of a third party framework > (see Opera, Edge, e.g.) -- how much of the reason for that is due to > rendering or networking I don't know. I

Re: [Development] Assistant WebKit/WebEngine support

2019-06-26 Thread Alberto Mardegan
On 27/06/19 04:47, Lars Knoll wrote: > > Yes, Webengine uses some memory. But is that really a problem on developer > machines? Yes. The more RAM you use for surfing documentation, the less RAM you have for building. I have 16 GB of RAM, and sometimes I have to close Chromium away (yes, I know,

Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-06-18 Thread Alberto Mardegan
On 18/06/19 10:43, Mutz, Marc via Development wrote: > On 2019-06-18 08:18, Alberto Mardegan wrote: >> >> Adding a const bool operator to QSharedDataPointer would solve the >> problem, wouldn't it? > > And (silently) break code that relies on the current behavio

Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-06-18 Thread Alberto Mardegan
On 05/06/19 01:39, Kevin Kofler wrote: > Mutz, Marc via Development wrote: > >> and produces surprises such as >> https://codereview.qt-project.org/gitweb?p=qt%2Fqtbase.git;a=commit;h=96dc9a19ae11ca140d681f0e2605b5f4b953e581 > > My existing QSharedDataPointer code always checks truth with > if

Re: [Development] Deprecation/removal model going into Qt 6

2019-06-01 Thread Alberto Mardegan
On 5/31/19 4:24 PM, Volker Hilsheimer wrote: > Nobody is forced to move to Qt 6 right away; Qt 5.15 is an LTS with > three years maintenance. We are not expecting lots of people to jump > on Qt 6.0 anyway (because .0, and not an LTS release anyway), so when > an API was marked as deprecated makes

Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-05-31 Thread Alberto Mardegan
On 30/05/19 18:34, Giuseppe D'Angelo via Development wrote: > Hi, > > On 30/05/2019 10:23, Alberto Mardegan wrote: >> I bet it's unused because everyone is using QList. But once we deprecate >> QList, people will start asking for a CoW version of std::list. > > QList

Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-05-30 Thread Alberto Mardegan
On 30/05/19 11:40, Mutz, Marc wrote: > On 2019-05-30 10:23, Alberto Mardegan wrote: >> It's not clear to me why splice() cannot be implemented: it would just >> mean that the list data would detach as in all other non-const methods. >> Or am I missing something? > > Y

Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-05-30 Thread Alberto Mardegan
On 29/05/19 13:53, Mutz, Marc via Development wrote: > == QSharedDataPointer / QExplicitlySharedDataPointer == > > These are basically Qt-internals, and should never have been public in > the first place. It's _because_ they are public that we have two of > them, and soon a third one (properly

Re: [Development] QML preprocessor

2019-03-18 Thread Alberto Mardegan
On 18/03/19 12:11, Pierre-Yves Siret wrote: > This can be done with QQmlFileSelector : > >     QQmlApplicationEngine engine; >     QQmlFileSelector* qmlFileSelector = QQmlFileSelector::get(); > > #if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) >     qmlFileSelector->setExtraSelectors({"5.12"}); >

[Development] QML preprocessor

2019-03-17 Thread Alberto Mardegan
Hi there! When developing a QML module for the greater public one wants to provide a source package that can be built on multiple Qt versions. However, QML's lack of a preprocessor makes this rather cumbersome. Suppose that my module needs to provide an element like this: import QtQuick

Re: [Development] QtQuick.Layouts and content margins

2019-02-25 Thread Alberto Mardegan
On 25/02/19 15:57, Mitch Curtis wrote: > My only issue with it is that I don't know if it will see much use > outside of your use case. Usually if all items in a layout have the > same margins, you would just apply those margins to the layout > managing them instead. While I appreciate that that

Re: [Development] QtQuick.Layouts and content margins

2019-02-25 Thread Alberto Mardegan
On 25/02/19 11:23, Mitch Curtis wrote: > So would it look something like this? > > // implicit size is 118 x 64 > ColumnLayout { > defaultLeftMargin: 12 > defaultRightMargin: 12 > defaultBottomMargin: 12 > defaultTopMargin: 12 > > // implicit size

[Development] QtQuick.Layouts and content margins

2019-02-24 Thread Alberto Mardegan
Hi there! I'm working on a desktop style for QtQuick.Controls 2 [1], and I'm currently investigating the issue of layouts. My current approach is to define my own ColumnLayout element like this: == import QtQuick.Layouts 1.2 import it.mardy.Desktop.private 1.0 ColumnLayout {

Re: [nikola-discuss] Simple sidebar for bootstrap template

2019-01-29 Thread Alberto Mardegan
On Sunday, January 27, 2019 at 12:39:23 PM UTC+3, Chris Warrick wrote: > > On Sun, 27 Jan 2019 at 09:43, Alberto Mardegan > > 2) I wanted to add a list of my recent posts into the sidebar, like > Blogger does for example here: http://blog.mardy.it/ > > I started coding t

Re: GNOME Online Accounts 3.34 won't have documents support

2019-01-28 Thread Alberto Mardegan via desktop-devel-list
Hi, On 21/01/19 19:32, mcatanz...@gnome.org wrote: > We have a rule though: the account types exposed in > gnome-online-accounts must be used by at least one core application. > It's a good rule because it doesn't make sense to have settings in > control-center for apps that aren't installed by

[nikola-discuss] Simple sidebar for bootstrap template

2019-01-27 Thread Alberto Mardegan
Hi there! I'm using the bootstrap4-jinja template, and I've followed some of the steps in https://bootstrapious.com/p/bootstrap-sidebar to add a sidebar to my Nikola site. I'm sharing the result hoping that it can be useful to someone else, and I've also got some question at the end. :-) I

Re: [nikola-discuss] Hiding post publication time

2019-01-25 Thread Alberto Mardegan
On Friday, January 25, 2019 at 12:02:10 AM UTC+3, Chris Warrick wrote: > > Taking all into consideration, my blog does this: > > DATE_FORMAT = {"en": "dd 'at' HH:mm", > "pl": "dd 'o' HH:mm"} Ah, I need to pay more attention to the "translatable" keywords in the

[nikola-discuss] Hiding post publication time

2019-01-24 Thread Alberto Mardegan
Hi all! I imported my blog from Jekyll, and as a result all my posts have a proper date but a 00:00 time. I would like to hide the publication time and have Nikola only display the date. I've played a bit with the DATE_FORMAT variable, and I could easily print all the dates as "-MM-dd".

Re: [nikola-discuss] Generate sections of pages or posts programmatically

2019-01-17 Thread Alberto Mardegan
Hi, On Tuesday, January 15, 2019 at 8:13:22 PM UTC+3, Chris Warrick wrote: > > If there is a single page: use a .md/.rst file and data files. To use > jinja2 tags in a Markdown file, use templated shortcodes. > > Thanks, Chris! We are talking only about one page, so I chose to use templated

[nikola-discuss] Re: How to troubleshoot UnicodeDecodeError on `nikola build`? (Nikola 8.0.1)

2019-01-14 Thread Alberto Mardegan
Hi, On Monday, January 14, 2019 at 2:42:25 PM UTC+3, blog.f...@gmail.com wrote: > > File "/usr/local/lib/python3.4/dist-packages/doit/dependency.py", line > 556, in status_is_ignore > return self._get(task.name, "ignore:") > File

[nikola-discuss] Generate sections of pages or posts programmatically

2019-01-14 Thread Alberto Mardegan
Hi there! I'm new to Nikola, and I have a pretty basic question to which I haven't been able to find an answer. I need to generate a "releases" page in my site; basically a list of files and links, which could come from a JSON file (I haven't yet decided on the specific format). I don't want

[Development] Braces (was Re: Resolving coding style contentions)

2018-12-20 Thread Alberto Mardegan
Hi all! Speaking of coding style again, I haven't found any indication in the coding guidelines about brace vs parentheses in initializations. There are a few cases where they can be used (and I might even be forgetting some): 1) Constructors: MyClass(): var(0) {} vs

Re: [Development] Fonts in QtWidgets and QtQuick

2018-11-27 Thread Alberto Mardegan
On 26/11/18 00:46, Alberto Mardegan wrote: > I'm working on a desktop style for the QtQuick Controls 2 API [1], and > as I'm trying to achieve a pixel-by-pixel equivalence with QtWidgets, > I'm writing unit tests which graphically compare the output generated by > my con

Re: [Development] Fonts in QtWidgets and QtQuick

2018-11-25 Thread Alberto Mardegan
On 26/11/18 00:32, Jean-Michaël Celerier wrote: > Did you enable native text rendering in Qt Quick ? I'm not using the QtQuick's Text element for rendering, but QStyle's APIs on top of QPainter: https://gitlab.com/mardy/qqc2-desktop/blob/master/plugin/styleitem.cpp#L1327 Ciao, Alberto --

[Bug 1795115] [NEW] Package should be marked "Multi-Arch: foreign"

2018-09-29 Thread Alberto Mardegan
Public bug reported: Similarly to python3-setuptools, which was handled in https://bugs.launchpad.net/ubuntu/+source/doxyqml/+bug/1585517, all the Python packages should be marked as "Multi-Arch: foreign" to allow proper cross installation. ** Affects: python-flake8 (Ubuntu) Importance:

[Bug 1502820] Re: Battery graph not showing full history

2018-09-20 Thread Alberto Mardegan
This is now fixed in Ubports :-) https://github.com/ubports/system-settings/pull/81 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502820 Title: Battery graph not showing full history To manage

[Touch-packages] [Bug 1793382] [NEW] Add aethercast support in AppArmor file

2018-09-19 Thread Alberto Mardegan
Public bug reported: Canonical modified the AppArmor policy in order to make authercast work: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay/+files/isc-dhcp_4.3.1-5ubuntu2_4.3.1-5ubuntu2.4~overlay1.diff.gz (only the first chunk of the patch is relevant to this

[Bug 1793382] [NEW] Add aethercast support in AppArmor file

2018-09-19 Thread Alberto Mardegan
Public bug reported: Canonical modified the AppArmor policy in order to make authercast work: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay/+files/isc-dhcp_4.3.1-5ubuntu2_4.3.1-5ubuntu2.4~overlay1.diff.gz (only the first chunk of the patch is relevant to this

[Bug 1776183] [NEW] pkg-config file is not installed

2018-06-11 Thread Alberto Mardegan
Public bug reported: The projects has a pkg-config file, but it's not present in the Ubuntu package. ** Affects: log4cplus (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

Re: [Development] Using native webview on OS X

2018-01-22 Thread Alberto Mardegan
On 22/01/2018 18:49, Konstantin Tokarev wrote: > From [1] it seems like QT_MAC_USE_NATIVE_WEBVIEW environment variable > is required to use native backend. > > [1] https://codereview.qt-project.org/#/c/162337/ Yes, but still QtWebEngine is required, as QtWebView is linking to it. I've now

[Development] Using native webview on OS X

2018-01-22 Thread Alberto Mardegan
Hi all! I've developed a desktop application which uses the WebView QML module, with the hope of publishing it in the Apple store. However, unless I am seriously mistaken, this is just not possible (or maybe the documentation needs some serious love). No matter what I try, it seems that

Re: [Development] Review request

2017-10-30 Thread Alberto Mardegan
On 29/10/2017 22:45, Thiago Macieira wrote: > I wish I could help in the reviews, but those are not things I understand at > all. But I can give this advice: the three changes targetting pre-5.9 need to > be updated. All three should be retargetted at 5.9. Good to know! I'll resubmit them,

[Development] Review request

2017-10-29 Thread Alberto Mardegan
Hi there! I've got a few merge proposals which were recently closed by the Qt cleanup bot due to lack of activity; I've reopened them and ping a few people, but to no avail. All but one are tiny, and I would appreciate if someone could spend a couple of minutes to give the final +2 or to advise

[Launchpad-users] Recursive git clone in recipe

2017-09-23 Thread Alberto Mardegan
Hi all! I believe that this used to work, but it looks like nowadays git submodules are not checked out by launchpad when building a recipe. Is this a bug, or do I remember wrong and this feature was never implemented? See also:

Bug#814900: telepathy-mission-control-5: Relax apparmor confinement for KDE account files

2017-09-13 Thread Alberto Mardegan
On 13/09/2017 12:44, Laurent Bigonville wrote: > Looking at debian it seems that nothing is installed a file in > /usr/share/kaccounts/. > > Is that an ubuntu thing? Or is that patch not needed anymore? It should not be ubuntu-specific, it should be a KDE policy. But I now see that the path has

Re: [Bf-committers] VSE devs?

2017-08-30 Thread Alberto Mardegan
On 30/08/2017 10:45, OllyFunkster wrote: > Hi folks, > >Just a quick note to say I'm still here, if rather quiet. Have had > some life-stuff happen that's reduced my availability for Blender > coding, but I do intend to get back to it - I too need to refresh my > patches once 2.79 is out.

Re: [Bf-committers] VSE devs?

2017-08-29 Thread Alberto Mardegan
Hi all, sorry for the bad quoting but since I'm resurrecting an old thread I thought it might be a good idea to quote it entirely (my question comes after the quoted text): On 18/04/2017 21:44, Ton Roosendaal wrote: > Hi Olly, > > Any chance you can hangout with us in irc.freenode.net

[Bug 1070873] Re: kde-telepathy, impossible to connect to gmail accounts

2017-08-10 Thread Alberto Mardegan
Hi Brandon (and everyone else experiencing the signin-ui crash), in order to fix this bug I need to get the exact backtrace of the signon-ui program. Could you please run apport-bug /var/crash/...[pick the signon-ui crash file] from a terminal, so that launchpad can analyze the crash? --

[Bug 1070873] Re: kde-telepathy, impossible to connect to gmail accounts

2017-08-10 Thread Alberto Mardegan
Hi Brandon (and everyone else experiencing the signin-ui crash), in order to fix this bug I need to get the exact backtrace of the signon-ui program. Could you please run apport-bug /var/crash/...[pick the signon-ui crash file] from a terminal, so that launchpad can analyze the crash? --

Re: [Interest] qdoc not working for my project (namespace issues?)

2017-07-29 Thread Alberto Mardegan
I've used qdoc before, but only for QML modules, and that worked without isses; but for some reason, when I run it on this C++ library, all I get is: = /home/mardy/Qt/5.8/gcc_64/bin/qdoc /home/mardy/src/git/accounts-sso/libauthentication/doc/authentication.qdocconf -outputdir

[Interest] qdoc not working for my project (namespace issues?)

2017-07-29 Thread Alberto Mardegan
Hi all! I've just started to add documentation to a project of mine, just to find out that generating the documentation does not work. :-( I've used qdoc before, but only for QML modules, and that worked without isses; but for some reason, when I run it on this C++ library, all I get is:

[Bug 1695928] Re: Please remove obsolete UOA packages

2017-06-30 Thread Alberto Mardegan
As far as I can see, there is no plan to remove these packages (please confirm, Jeremy). And indeed I'm going to maintain these packages in the future as well: libsignon-{qt,glib}, signond, libaccounts-{qt,glib} I'm also willing to maintain other packages mentioned in this bug, such as

<    1   2   3   4   5   6   7   8   9   10   >