VirtualBox

Ignore:
Timestamp:
Apr 26, 2007 4:37:53 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20750
Message:

1764: Better default size in "Create VDI" wizard when called from "Create VM" wizard.

These changes related both to NewVM and NewHD wizards.

  1. Labels sizeHint calculation based on minimum QLabel width. In case of there is no minimum QLabel width predefined – sizeHint calculation leads to wrong dialog height (dialog could be very tall).
  2. Own QTextEdit implementation with sizeHint based on contained text.
  3. The color of the dialog’s picture background is set to the color of the picture’s last pixel. So it is possible to vertically resize dialog & picture simultaneously.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r2354 r2357  
    3636#include <qpopupmenu.h>
    3737#include <qtooltip.h>
     38#include <qtextedit.h>
    3839
    3940#include <qptrvector.h>
     
    4445
    4546class QAction;
     47class QLabel;
    4648
    4749// Auxiliary types
     
    132134    const QUuid machineId;
    133135    const QUuid snapshotId;
     136};
     137
     138class VBoxTextView : public QTextEdit
     139{
     140Q_OBJECT
     141
     142public:
     143
     144    VBoxTextView (QWidget*);
     145
     146    QSize sizeHint() const;
     147    QSize minimumSizeHint() const;
     148
     149public slots:
     150
     151    void setText (const QString &);
    134152};
    135153
     
    387405
    388406    /* public static stuff */
     407
     408    static void fillPixmapBackGrd (QLabel *);
    389409
    390410    static QString languageId();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette