Re: [Qt-creator] Tabs vs Spaces?

2020-03-06 Thread Bryan Bennetts
Hi Jason, You can use git smudge and clean filters so that local versions appear to have spaces, but the remote has tabs. Having said that, I've fiddled with them in the past for formatting they are a little scary IMHO. Best plan is just to choose a format and get everyone to use it, regardless

Re: [Qt-creator] Tabs vs Spaces?

2020-03-06 Thread Michael Jackson
I will echo Henry and say that clang-format and git-clang-format in combination with QtCreator 4.10 and newer have let our project all live with the same formatting rules. As I type code QtCreator uses our clang-format file to format my code. Git-clang-format for changes made through other text

Re: [Qt-creator] Using Qt Enums as QML object keys... Qt6?

2020-03-06 Thread Jason H
Sorry, all this should have gone to interest - please continue any discussion there. /my bad > Sent: Friday, March 06, 2020 at 12:23 PM > From: "Jason H" > To: qt-creator > Subject: [Qt-creator] Using Qt Enums as QML object keys... Qt6? > > First, sometimes I find that not all Qt enums are

[Qt-creator] Using Qt Enums as QML object keys... Qt6?

2020-03-06 Thread Jason H
First, sometimes I find that not all Qt enums are exported to QML. Like the QProcess::ProcessState, IIRC. Are these bugs? Shouldn't all Qt enums in QObject recived classes be Q_ENUM()ed? Next, QML's uage of these is normally an int, when I print these with console.log() they come out as

Re: [Qt-creator] Tabs vs Spaces?

2020-03-06 Thread Konstantin Tokarev
06.03.2020, 19:39, "Jason H" : > I am a tabs guy. I change the Qt style to use tabs. I tab all the things!! > > Anyway, I now have other contributors to my project that are spaces people. > How can we live in harmony? One side effect is that it seems git considers > whitespace changes so his

Re: [Qt-creator] Tabs vs Spaces?

2020-03-06 Thread Miller Henry
The obvious thing is to create a clang-format rule that formats things to your preferences, and then back to the repo preferences. A git hook can reformat files to the repo preferences before you check them in, though I'm not sure how you reformat to your preferences. Beware that if you do

[Qt-creator] Tabs vs Spaces?

2020-03-06 Thread Jason H
I am a tabs guy. I change the Qt style to use tabs. I tab all the things!! Anyway, I now have other contributors to my project that are spaces people. How can we live in harmony? One side effect is that it seems git considers whitespace changes so his code is indented with spaces, mine are tabs

Re: [Qt-creator] Create SplitView in EditorManager programmatically

2020-03-06 Thread Vidhya Arun
Yes Andre, I referred this plugin too but I found there is no separate preview pane here instead the preview was happening directly in the editor. I was looking to develop a side by side viewer with the text editor and preview pane where the preview pane will remain read only Vidhya On Fri, 6

Re: [Qt-creator] Create SplitView in EditorManager programmatically

2020-03-06 Thread André Hartmann
Dear Vidhya Arun, Please note that there is currently a markdown viewer in development / review: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/287928 Maybe your plugin and the markdown viewer can join forces - after all the use case should be similar. Regards, André Am

Re: [Qt-creator] Create SplitView in EditorManager programmatically

2020-03-06 Thread Eike Ziller
> On 6. Mar 2020, at 15:29, Eike Ziller wrote: > > > >> On 6. Mar 2020, at 15:15, Vidhya Arun wrote: >> >> Hello All >> >> I am creating a plugin for ascii doc preview for which I need to create a >> splitView in the EditorManager. >> My idea is to create a plainTextEdit in one side of

Re: [Qt-creator] Create SplitView in EditorManager programmatically

2020-03-06 Thread Eike Ziller
> On 6. Mar 2020, at 15:15, Vidhya Arun wrote: > > Hello All > > I am creating a plugin for ascii doc preview for which I need to create a > splitView in the EditorManager. > My idea is to create a plainTextEdit in one side of Editor and a previewer in > the other split. > > Are there any

[Qt-creator] Create SplitView in EditorManager programmatically

2020-03-06 Thread Vidhya Arun
Hello All I am creating a plugin for ascii doc preview for which I need to create a splitView in the EditorManager. My idea is to create a plainTextEdit in one side of Editor and a previewer in the other split. Are there any methods exposed directly from TextEditor or EditorManager plugin to