Changeset 11019:e81b49d9cdba in orange


Ignore:
Timestamp:
11/14/12 10:34:13 (17 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Layout improvements for add-ons dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngDlgs.py

    r11018 r11019  
    742742        # Repository & Add-on tree 
    743743         
    744         repos = OWGUI.widgetBox(mainBox, "Add-ons", orientation = "horizontal", sizePolicy=QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)) 
     744        repos = OWGUI.widgetBox(mainBox, "Add-ons", orientation = "horizontal", sizePolicy=QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Ignored)) 
    745745        repos.layout().setSizeConstraint(QLayout.SetMinimumSize) 
    746746        self.lst = lst = QListWidget(repos) 
     
    755755        # Bottom info pane 
    756756         
    757         self.infoPane = infoPane = OWGUI.widgetBox(mainBox, orientation="vertical", sizePolicy=QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)) 
     757        self.infoPane = infoPane = OWGUI.widgetBox(mainBox, orientation="vertical", sizePolicy=QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Ignored)) 
    758758        infoPane.layout().setSizeConstraint(QLayout.SetMinimumSize) 
    759759 
     
    796796        lblDescription.setLineWrapMode(QTextEdit.WidgetWidth) 
    797797        lblDescription.setWordWrapMode(QTextOption.WordWrap) 
    798         QObject.connect(lblDescription.document().documentLayout(), 
    799                         SIGNAL("documentSizeChanged(const QSizeF &)"), 
    800                         lambda docSize: self.updateDescMinSize(docSize)) 
    801  
    802         # Bottom info pane for registered add-ons 
    803         self.regiInfoPane = regiInfoPane = OWGUI.widgetBox(mainBox, orientation="vertical", sizePolicy=QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Minimum)) 
    804         regiInfoPane.layout().setSizeConstraint(QLayout.SetMinimumSize) 
    805         self.lblRegisteredAddOnInfo = OWGUI.label(regiInfoPane, self, "-") 
    806         self.lblRegisteredAddOnInfo.setSizePolicy(QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)) 
    807798 
    808799        # Right panel 
     
    818809                btn.setMinimumHeight(btn.height()) 
    819810         
    820         # Close button 
    821         hbox = OWGUI.widgetBox(mainBox, orientation = "horizontal", sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)) 
     811        # Buttons 
     812        hbox = OWGUI.widgetBox(mainBox, orientation = "horizontal", sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)) 
    822813        hbox.layout().addStretch(1) 
    823814        self.okButton = OWGUI.button(hbox, self, "OK", callback = self.accept) 
     
    941932 
    942933            self.infoPane.setVisible(True) 
    943             self.regiInfoPane.setVisible(False) 
    944934        else: 
    945935            self.infoPane.setVisible(False) 
    946             self.regiInfoPane.setVisible(False) 
    947936        self.enableDisableButtons() 
    948937 
Note: See TracChangeset for help on using the changeset viewer.