Changeset 7226 in vbox
- Timestamp:
- Feb 29, 2008 5:29:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r7220 r7226 3809 3809 } 3810 3810 3811 / / initialize guest OS type vector3811 /* initialize guest OS type vector */ 3812 3812 CGuestOSTypeCollection coll = mVBox.GetGuestOSTypes(); 3813 3813 int osTypeCount = coll.GetCount(); … … 3822 3822 } 3823 3823 3824 / / fill in OS type icon dictionary3824 /* fill in OS type icon dictionary */ 3825 3825 static const char *osTypeIcons[][2] = 3826 3826 { … … 3849 3849 {"l4", "os_l4.png"}, 3850 3850 }; 3851 vm_os_type_icons.setAutoDelete (true); / / takes ownership of elements3851 vm_os_type_icons.setAutoDelete (true); /* takes ownership of elements */ 3852 3852 for (uint n = 0; n < SIZEOF_ARRAY (osTypeIcons); n ++) 3853 3853 { … … 3856 3856 } 3857 3857 3858 / / fill in VM state icon dictionary3858 /* fill in VM state icon dictionary */ 3859 3859 static struct 3860 3860 { … … 3884 3884 } 3885 3885 3886 / / online/offline snapshot icons3886 /* online/offline snapshot icons */ 3887 3887 mOfflineSnapshotIcon = qPixmapFromMimeSource ("offline_snapshot_16px.png"); 3888 3888 mOnlineSnapshotIcon = qPixmapFromMimeSource ("online_snapshot_16px.png"); 3889 3889 3890 / / initialize state colors vector3891 // no ownership of elements, we're passing pointers to existing objects3890 /* initialize state colors vector */ 3891 vm_state_color.setAutoDelete (true); /* takes ownership of elements */ 3892 3892 vm_state_color.insert (KMachineState_Null, new QColor(Qt::red)); 3893 3893 vm_state_color.insert (KMachineState_PoweredOff, new QColor(Qt::gray)); … … 3905 3905 qApp->installEventFilter (this); 3906 3906 3907 / / create default non-null global settings3907 /* create default non-null global settings */ 3908 3908 gset = VBoxGlobalSettings (false); 3909 3909 3910 / / try to load global settings3910 /* try to load global settings */ 3911 3911 gset.load (mVBox); 3912 3912 if (!mVBox.isOk() || !gset) … … 3923 3923 languageChange(); 3924 3924 3925 / / process command line3925 /* process command line */ 3926 3926 3927 3927 vm_render_mode_str = 0; … … 3981 3981 vm_render_mode = vboxGetRenderMode( vm_render_mode_str ); 3982 3982 3983 / / setup the callback3983 /* setup the callback */ 3984 3984 callback = CVirtualBoxCallback (new VBoxCallback (*this)); 3985 3985 mVBox.RegisterCallback (callback); … … 3988 3988 return; 3989 3989 3990 /* 3991 * Redefine default large and small icon sizes. In particular, it is 3992 * necessary to consider both 32px and 22px icon sizes as Large when 3993 * we explicitly define them as Large (seems to be a bug in 3994 * QToolButton::sizeHint()). 3995 */ 3990 /* Redefine default large and small icon sizes. In particular, it is 3991 * necessary to consider both 32px and 22px icon sizes as Large when we 3992 * explicitly define them as Large (seems to be a bug in 3993 * QToolButton::sizeHint()). */ 3996 3994 #warning port me 3997 3995 // QIcon::setIconSize (QIcon::Small, QSize (16, 16));
Note:
See TracChangeset
for help on using the changeset viewer.