Chocobo1
b29a52dfa8
Use the same icon for selecting folders/files
...
As stated in Qt doc, the `QStyle::SP_DialogOpenButton` is only for a
button within QDialogButtonBox which means it isn't suitable elsewhere.
2021-08-09 13:14:14 +08:00
Chocobo1
70d1cb86fd
Disable move constructor where it is sensible
2021-06-29 14:49:45 +08:00
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
2021-06-03 08:56:41 +03:00
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
2020-11-17 21:02:37 +03:00
jagannatharjun
971a21f306
Add missing header stdexcept in fspathedit
...
Fixes compilation error with MSVC 16.6
2020-05-20 23:25:19 +05:30
Vladimir Golovnev (Glassez)
a8c333ff25
Drop "private" subfolders
...
"private" subfolders violate the structure of the project,
since the existence of all other subfolders is based on a
different principle.
In addition, there is no clear line between "private" and
"non private".
2020-05-08 14:59:18 +03:00
Chocobo1
ee0d2d2220
Move fspathedit_p to private folder
2019-07-26 22:32:18 +08:00
Vladimir Golovnev (Glassez)
8e65317d61
Rename "fromNativePath" to "toUniformPath"
...
Unlike "toNativePath" which name clearly reflects the function result
"fromNativePath" has no such clear meaning.
Since this function converts path into uniform format "toUniformPath"
is better name.
2019-06-17 15:55:49 +03:00
Mike Tzou
0f1fc7be9d
Merge pull request #10302 from Chocobo1/uptr
...
Replace QScopedPointer with std::unqiue_ptr
2019-03-02 12:26:14 +08:00
Chocobo1
5e3fddf456
Replace QScopedPointer with std::unqiue_ptr
...
These 2 types are very similar and we should prefer the one from C++
standard library, this reduces the number of types in our code base.
Also see:
https://stackoverflow.com/questions/40346393/should-i-use-qscopedpointer-or-stdunique-ptr#comment67966940_40346991
2019-02-18 16:06:40 +08:00
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
2019-02-16 18:54:17 +02:00
thalieht
d668a4fe6d
Fix coding style for various things
2018-11-28 23:37:35 +02:00
Chocobo1
9f809114f0
Really fix translation in fspathedit
...
QT_TRANSLATE_NOOP3 is a macro, so we cannot use a runtime string for the context
argument.
Fix up 1d778676cd
.
2018-05-05 21:09:47 +08:00
Chocobo1
a3d9e457a0
Add context parameter in connect()
2018-03-09 13:44:17 +08:00
Chocobo1
1d778676cd
Fix translation context. Closes #8211 .
2018-01-05 12:07:50 +08:00
Chocobo1
c5d99a12f3
Use standard folder icon for open file behavior on Windows. Closes #7880 .
2017-12-08 09:15:44 +08:00
Eugene Shalygin
e4771ba508
Add maxVisibleItems combo box property to FileSystemPathComboEdit.
2017-10-24 12:56:04 +02:00
sledgehammer999
d93d0ab19e
Show new paths in native form.
2017-10-09 17:42:42 +03:00
sledgehammer999
c285de87d4
Don't use margins in FileSystemPathEdit widgets.
...
Introduced in 30081e0
.
2017-09-26 04:06:32 +03:00
Eugene Shalygin
574fed04fc
Add visual feedback for wrong paths in FileSystemPathEdit
2017-06-10 17:09:20 +02:00
Eugene Shalygin
30081e0356
Add widget for editing filesystem paths
2017-05-08 10:08:29 +02:00