Skip to content

Commit

Permalink
cleanup stylesheet and overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Apr 25, 2013
1 parent a359079 commit ddca4af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions enaml/qt/docking/dock_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
# The full license is in the file COPYING.txt, distributed with this software.
#------------------------------------------------------------------------------
from PyQt4.QtCore import Qt, QPoint, QRect, QTimer, QPropertyAnimation
from PyQt4.QtGui import QRubberBand, QSplitterHandle, QTabWidget
from PyQt4.QtGui import QRubberBand

from atom.api import Atom, Bool, Int, Float, Typed

from .q_guide_rose import QGuideRose
from .q_dock_container import QDockContainer
from .q_dock_splitter import QDockSplitterHandle
from .q_dock_tab_widget import QDockTabWidget


class DockOverlay(Atom):
Expand Down Expand Up @@ -392,9 +393,9 @@ def mouse_over_area(self, area, widget, pos):
target_mode = Mode.Border
if isinstance(widget, QDockContainer):
target_mode |= Mode.CompassEx
elif isinstance(widget, QTabWidget):
elif isinstance(widget, QDockTabWidget):
target_mode |= Mode.Compass
elif isinstance(widget, QSplitterHandle):
elif isinstance(widget, QDockSplitterHandle):
if widget.orientation() == Qt.Horizontal:
target_mode |= Mode.SplitHorizontal
else:
Expand Down
6 changes: 3 additions & 3 deletions enaml/qt/docking/q_dock_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,18 @@ def __init__(self, parent=None):
border-bottom-right-radius: 3px;
}
QTabWidget QDockItem {
QDockTabWidget QDockItem {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
QTabWidget[tabPosition="3"]::tab-bar {
QDockTabWidget[tabPosition="3"]::tab-bar {
right: 2px; /* adjust the unsightly gap */
}
QTabWidget[tabPosition="1"]::tab-bar {
QDockTabWidget[tabPosition="1"]::tab-bar {
bottom: 2px; /* adjust the unsightly gap */
}
Expand Down

0 comments on commit ddca4af

Please sign in to comment.