Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-30 Thread Jonathan Doman

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/
---

(Updated July 30, 2014, 10:15 p.m.)


Status
--

This change has been marked as submitted.


Review request for Okular.


Bugs: 334018
http://bugs.kde.org/show_bug.cgi?id=334018


Repository: okular


Description
---

Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
internal data. Slightly more than the single line I thought it would be.


Diffs
-

  shell/shell.h f25b3d8c01215534b9a7097d1e229607c8f98ef3 
  shell/shell.cpp 9ee422a60feb31286abc5ec178ce64835fd80781 

Diff: https://git.reviewboard.kde.org/r/118685/diff/


Testing
---

Tested that the GUI remains coherent when moving two tabs around many times. As 
before, the tool selections aren't quite coherent, but that's for another patch.


Thanks,

Jonathan Doman

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-15 Thread Albert Astals Cid

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/#review62426
---



shell/shell.cpp
https://git.reviewboard.kde.org/r/118685/#comment43349

What do you mean KTabWidget does not expose the underlying tabbar? 
KTabWidget is a QTabWidget and is setting its tabbar with 

  setTabBar( new KTabBar( this ) );

so how would QTabWidget::tabBar not return something valid?


- Albert Astals Cid


On jun. 12, 2014, 4:52 a.m., Jonathan Doman wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/118685/
 ---
 
 (Updated jun. 12, 2014, 4:52 a.m.)
 
 
 Review request for Okular.
 
 
 Bugs: 334018
 http://bugs.kde.org/show_bug.cgi?id=334018
 
 
 Repository: okular
 
 
 Description
 ---
 
 Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
 internal data. Slightly more than the single line I thought it would be.
 
 
 Diffs
 -
 
   shell/shell.h f25b3d8 
   shell/shell.cpp 9ee422a 
 
 Diff: https://git.reviewboard.kde.org/r/118685/diff/
 
 
 Testing
 ---
 
 Tested that the GUI remains coherent when moving two tabs around many times. 
 As before, the tool selections aren't quite coherent, but that's for another 
 patch.
 
 
 Thanks,
 
 Jonathan Doman
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-15 Thread Jonathan Doman


 On July 15, 2014, 2:27 p.m., Albert Astals Cid wrote:
  shell/shell.cpp, line 114
  https://git.reviewboard.kde.org/r/118685/diff/1/?file=280425#file280425line114
 
  What do you mean KTabWidget does not expose the underlying tabbar? 
  KTabWidget is a QTabWidget and is setting its tabbar with 
  
setTabBar( new KTabBar( this ) );
  
  so how would QTabWidget::tabBar not return something valid?

That function is protected. I would have to subclass {K,Q}TabWidget to gain 
access to it.


- Jonathan


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/#review62426
---


On June 11, 2014, 11:52 p.m., Jonathan Doman wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/118685/
 ---
 
 (Updated June 11, 2014, 11:52 p.m.)
 
 
 Review request for Okular.
 
 
 Bugs: 334018
 http://bugs.kde.org/show_bug.cgi?id=334018
 
 
 Repository: okular
 
 
 Description
 ---
 
 Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
 internal data. Slightly more than the single line I thought it would be.
 
 
 Diffs
 -
 
   shell/shell.h f25b3d8 
   shell/shell.cpp 9ee422a 
 
 Diff: https://git.reviewboard.kde.org/r/118685/diff/
 
 
 Testing
 ---
 
 Tested that the GUI remains coherent when moving two tabs around many times. 
 As before, the tool selections aren't quite coherent, but that's for another 
 patch.
 
 
 Thanks,
 
 Jonathan Doman
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-15 Thread Albert Astals Cid


 On jul. 15, 2014, 7:27 p.m., Albert Astals Cid wrote:
  shell/shell.cpp, line 114
  https://git.reviewboard.kde.org/r/118685/diff/1/?file=280425#file280425line114
 
  What do you mean KTabWidget does not expose the underlying tabbar? 
  KTabWidget is a QTabWidget and is setting its tabbar with 
  
setTabBar( new KTabBar( this ) );
  
  so how would QTabWidget::tabBar not return something valid?
 
 Jonathan Doman wrote:
 That function is protected. I would have to subclass {K,Q}TabWidget to 
 gain access to it.

Have you actually tried?

using QTabWidget::tabBar;

in ktabwidget.h should make tabBar public in KTabWidget.


- Albert


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/#review62426
---


On jun. 12, 2014, 4:52 a.m., Jonathan Doman wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/118685/
 ---
 
 (Updated jun. 12, 2014, 4:52 a.m.)
 
 
 Review request for Okular.
 
 
 Bugs: 334018
 http://bugs.kde.org/show_bug.cgi?id=334018
 
 
 Repository: okular
 
 
 Description
 ---
 
 Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
 internal data. Slightly more than the single line I thought it would be.
 
 
 Diffs
 -
 
   shell/shell.h f25b3d8 
   shell/shell.cpp 9ee422a 
 
 Diff: https://git.reviewboard.kde.org/r/118685/diff/
 
 
 Testing
 ---
 
 Tested that the GUI remains coherent when moving two tabs around many times. 
 As before, the tool selections aren't quite coherent, but that's for another 
 patch.
 
 
 Thanks,
 
 Jonathan Doman
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-15 Thread Jonathan Doman

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/
---

(Updated July 15, 2014, 9:52 p.m.)


Review request for Okular.


Changes
---

Whaddya know, there is a KTabWidget::tabBar!


Bugs: 334018
http://bugs.kde.org/show_bug.cgi?id=334018


Repository: okular


Description
---

Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
internal data. Slightly more than the single line I thought it would be.


Diffs (updated)
-

  shell/shell.h f25b3d8c01215534b9a7097d1e229607c8f98ef3 
  shell/shell.cpp 9ee422a60feb31286abc5ec178ce64835fd80781 

Diff: https://git.reviewboard.kde.org/r/118685/diff/


Testing
---

Tested that the GUI remains coherent when moving two tabs around many times. As 
before, the tool selections aren't quite coherent, but that's for another patch.


Thanks,

Jonathan Doman

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-14 Thread Albert Astals Cid

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/#review62354
---



shell/shell.cpp
https://git.reviewboard.kde.org/r/118685/#comment43311

Please just call tabBar()


- Albert Astals Cid


On jun. 12, 2014, 4:52 a.m., Jonathan Doman wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/118685/
 ---
 
 (Updated jun. 12, 2014, 4:52 a.m.)
 
 
 Review request for Okular.
 
 
 Bugs: 334018
 http://bugs.kde.org/show_bug.cgi?id=334018
 
 
 Repository: okular
 
 
 Description
 ---
 
 Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
 internal data. Slightly more than the single line I thought it would be.
 
 
 Diffs
 -
 
   shell/shell.h f25b3d8 
   shell/shell.cpp 9ee422a 
 
 Diff: https://git.reviewboard.kde.org/r/118685/diff/
 
 
 Testing
 ---
 
 Tested that the GUI remains coherent when moving two tabs around many times. 
 As before, the tool selections aren't quite coherent, but that's for another 
 patch.
 
 
 Thanks,
 
 Jonathan Doman
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-07-14 Thread Jonathan Doman


 On July 14, 2014, 5:45 p.m., Albert Astals Cid wrote:
  shell/shell.cpp, line 114
  https://git.reviewboard.kde.org/r/118685/diff/1/?file=280425#file280425line114
 
  Please just call tabBar()

If only it were so easy - KTabWidget does not expose the underlying tab bar. 
Personally, I find this simpler than subclassing KTabWidget or using 
KTabBar+QStackedLayout.


- Jonathan


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/#review62354
---


On June 11, 2014, 11:52 p.m., Jonathan Doman wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/118685/
 ---
 
 (Updated June 11, 2014, 11:52 p.m.)
 
 
 Review request for Okular.
 
 
 Bugs: 334018
 http://bugs.kde.org/show_bug.cgi?id=334018
 
 
 Repository: okular
 
 
 Description
 ---
 
 Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
 internal data. Slightly more than the single line I thought it would be.
 
 
 Diffs
 -
 
   shell/shell.h f25b3d8 
   shell/shell.cpp 9ee422a 
 
 Diff: https://git.reviewboard.kde.org/r/118685/diff/
 
 
 Testing
 ---
 
 Tested that the GUI remains coherent when moving two tabs around many times. 
 As before, the tool selections aren't quite coherent, but that's for another 
 patch.
 
 
 Thanks,
 
 Jonathan Doman
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Review Request 118685: Make tabs rearrangeable

2014-06-11 Thread Jonathan Doman

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118685/
---

Review request for Okular.


Bugs: 334018
http://bugs.kde.org/show_bug.cgi?id=334018


Repository: okular


Description
---

Catch the tabMoved signal emitted by the tab bar in order to rearrange the 
internal data. Slightly more than the single line I thought it would be.


Diffs
-

  shell/shell.h f25b3d8 
  shell/shell.cpp 9ee422a 

Diff: https://git.reviewboard.kde.org/r/118685/diff/


Testing
---

Tested that the GUI remains coherent when moving two tabs around many times. As 
before, the tool selections aren't quite coherent, but that's for another patch.


Thanks,

Jonathan Doman

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel