Ignore:
Timestamp:
11/23/12 18:56:18 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added annotation action menus for font size and arrow color.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvasmain.py

    r11197 r11201  
    1414    QMainWindow, QWidget, QAction, QActionGroup, QMenu, QMenuBar, QDialog, 
    1515    QFileDialog, QMessageBox, QVBoxLayout, QSizePolicy, QColor, QKeySequence, 
    16     QIcon, QToolBar, QDockWidget, QDesktopServices, QUndoGroup, QApplication 
     16    QIcon, QToolBar, QToolButton, QDockWidget, QDesktopServices, QUndoGroup, 
     17    QApplication 
    1718) 
    1819 
     
    334335 
    335336        for action in dock_actions: 
     337            self.canvas_toolbar.addAction(action) 
     338            button = self.canvas_toolbar.widgetForAction(action) 
     339            button.setPopupMode(QToolButton.DelayedPopup) 
     340 
    336341            actions_toolbar.addAction(action) 
    337             self.canvas_toolbar.addAction(action) 
    338342            button = actions_toolbar.widgetForAction(action) 
    339343            button.setFixedSize(38, 30) 
     344            button.setPopupMode(QToolButton.DelayedPopup) 
    340345 
    341346        dock2.layout().addWidget(self.quick_category) 
Note: See TracChangeset for help on using the changeset viewer.