| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Change-Id: Iee7c700666d866ac28b8102a17ee86121af1af4e
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
It should be _after_ the potential widget-instance creation.
Change-Id: I7534a5914aeb96b441807945030a1ea1d8370378
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I107d51c9e3a874b92c627735dc88c7d296ec799f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
Now that we know the type and whether it should be native, it can
be all done in the base class to reduce a lot of code duplication.
Change-Id: I7d7d7057fa499df75b72914d2b505bfa0288048d
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: Id1699a6045eb9066a80ebdbb3cb5d3a01e58a36f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I42b5e403e6cb16e607d9ce0d0e9f624b150bec03
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I4b65c7623a34d016243e626146437d2fa20fd93b
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
A more generic replacement for MessageDialog.clickedButton.
Change-Id: I060f70a48ab258485e3155188e483c4cf24210e0
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I6bccfebcbb32dcafeea0814d88f7882857a62a85
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I56ad5025fb873261ccd96e82e4c9fff0731ddf92
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
It is no longer necessary to force the creation when accessing the
handle, because all places where it is used have a fallback member.
Change-Id: I7051b79e12c48aff0065a5a478c9c6c0c3ad2559
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
This allows us to postpone to creation further, and even re-create
the instance on the fly later, without losing information.
Change-Id: I116d332d10d637bbc393ee31ec1bc8b0cd156835
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
Make sure the widget-based fallback implementation will never call
back to the platform plugin.
Change-Id: I860e61d23a34edcd0a8f85aabbd8d9c86ceac9ad
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I5805e03327cea6cba8083f636e061b561e87f215
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: If31d657e29a9cc3049af5cd3cf39d68979ff2db0
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I60d60072f1cc6a876228e647b1d6db943e303ea2
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
Follow the same convention that ColorDialog, FontDialog and FolderDialog.
Change-Id: I960d4fc1ba275ab997f2a079a799d2b90796eca3
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
Follow the same convention that ColorDialog and FontDialog.
Change-Id: I49834daf908aadf145949c0b749c6c066f63fd83
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
This is consistent with the QML FontDialog from QtQuick Dialogs 1.
Change-Id: I14a5a313be5ba9a9e0fb1645fe272cf9c2cdd389
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
This is consistent with the QML ColorDialog from QtQuick Dialogs 1.
Change-Id: I4068a98156494eb36b2d9ecf4c1af90ad173bb97
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: Ie963cb5c082b49205f7b7244ace3b88254ec37c7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
See 8868f35 for details.
Change-Id: Ief74515e3be385e5d248f5082063e3f8dde72c81
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: Iea162f6960d20758e5fdfd0544f38ea8d22d007d
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I1c90622135d4fc5156aa40b258fd79de72c21331
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
To be more in line with QtQuick.Dialogs 1.x.
Change-Id: Ic512222a88a376ebc142563dceccbbb1c3b98a75
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
This is similar to what MessageDialog from QtQuick Dialogs 1.x does,
and evidently very convenient and intuitive to use.
Change-Id: I8f7e0f98cfbc256e0dd398471b63ecf04d884314
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
|
| |
None of the platforms provide _all_ native types. There is always
at least one type on every platform that needs to fallback to widgets.
For example, without this, MessageDialog does not appear on macOS.
Change-Id: I40e83f58da6a510cec4f8280d5b8d8aa1e2e4fc1
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
StandardButton is used by QtQuick.Dialogs 1.x
Change-Id: I12da1f00f60e08ac10fb5c0dda04e1d1c16179bc
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Available categories:
- qt.labs.platform.dialogs
- qt.labs.platform.menus
- qt.labs.platform.tray
The output shows which implementation is used. Example:
$ QT_LOGGING_RULES=qt.labs.platform.*=true ./texteditor
qt.labs.platform.menus: MenuBar: QCocoaMenuBar(0x7fe27bdf7730)
qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdf8450)
qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bdfa510)
qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27e500000)
qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e500f30)
qt.labs.platform.dialogs: FileDialog: QPlatformFileDialogHelper(0x7fe27e501ac0)
qt.labs.platform.dialogs: ColorDialog: QPlatformColorDialogHelper(0x7fe27e502920)
qt.labs.platform.dialogs: MessageDialog: QWidgetPlatformMessageDialog(0x7fe27e523b40)
qt.labs.platform.menus: Menu: QPlatformMenu(0x7fe27bcd9c30)
Change-Id: I07fc8b13f05f365337bc171149bb848639b3fbd0
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
| |
The clicked signal from the platform dialog cannot be wired to
the close slot. We must check the role and act accordingly.
Change-Id: I2cb9e106814f9b901d76dd79ff8eeeafe98d4d46
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
| |
To be more in line with QtQuick.Dialogs 1.x.
Change-Id: Ied68abee9574ff8705c4abfc1940081ab3686a2b
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: I0c0aae219c81b9248a5a8a0fd0e78521cbe86360
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
|
|
|
|
| |
Looks like defaultSuffix is not handled by QPlatformFileDialog even if
it is passed via QFileDialogOptions. This patch makes QML FileDialog
handle the defaultSuffix the same way QFileDialog from QtWidgets does.
Change-Id: Icdb527715a6bdfc8d90b55639c4926941cbd5afd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: Ia7652d201cdaec4e930582416c4327f9f63df545
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: Ib3111bf9378d7910b99658a1747f6407ff69a943
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I223f19db90f8c1183399831a12e7beaf9923413d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Platform dialogs hold a shared pointer to an options structure.
Dialog implementations may access the options in various places
(eg. QGtk3FileDialogHelper::selectFile()) and seem to rely that
the options are not null at this point. Thus, pass the options
pointer right away on construction instead of unnecessarily
delaying to applyOptions(), to avoid potential crashes.
Change-Id: I14b0801eb58a9834867dd302a6610e64adeea0cd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I4328c273e48139d6ddd5a3d3c8492d06f48a5c24
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
|
|
|
| |
OS X -> macOS, GTK -> GTK+
Change-Id: I501bc5bc6d8ecff647f701febb777c5207b593cd
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I9bf88049d4c6c77cbd438398fd13a11c07efc7f3
Reviewed-by: Liang Qi <liang.qi@qt.io>
|
|
|
|
|
| |
Change-Id: I205d62325cf3ce2ce16c725752c02762cec877c1
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I89f67fa4f620dc81dd9e7fe848f37ea5c12d5db7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This makes these dialogs available on Windows and KDE. One more reason
to keep the module experimental. In the long run, platforms should
implement QPA dialogs so that we can remove the undesired dependency.
Also simple instance creation tests are included to make sure it
won't crash with non-QApplication apps.
Change-Id: Ib4dabe7b656a1aa1f114052a3f57c9b1232ff27f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
This makes system tray icons available on Windows and KDE. One more
reason to keep the module experimental. In the long run, platforms
should implement QPA system trays so that we can remove the undesired
dependency.
Change-Id: Ibc30f881525cd14091affc996104c65310c0a13e
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
|
|
|
|
| |
This makes context menus available on Windows and KDE. One more reason
to keep the module experimental. In the long run, platforms should
implement QPA menus so that we can remove the undesired dependency.
Change-Id: Ifd2d1e92512a05a95d3e7e7e7c00d712e06ce0cb
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
|
|
|
|
|
| |
Change-Id: Icda7f8ad0a4cdaace1a2c33fd42cfd071d547a15
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I5c2a89d50e3bd017a91161e510d3a4281881abf0
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
|
|
|
| |
The base class of the upcoming platform dialogs: ColorDialog,
FileDialog, FontDialog, and MessageDialog.
Change-Id: I2d4918b5d4f8a7f453aa8f314e13540cb2a8e2b5
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: I25190e1ae485e86cfbed524a418884d47f21e83d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|
|
|
|
|
| |
Change-Id: Ifbca41ef384ca8fe8afefc61869f85c17db0f8c7
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
|