From: Tim E. R. <ter...@ro...> - 2010-11-17 05:23:33
|
On November 16, 2010 10:46:36 pm Orcan Ogetbil wrote: > Dear gang, > I ported the filedialog widget to Qt4. The new QFileDialog class has > new features, but it also lacks some old features. > > I hacked our Global/User/Project buttons sidebar into the original > QFileDialog widget. The icons are taken from the user's icon theme. If > the corresponding icons do not exist in the theme, we fall back to the > old icons from muse1. Oxygen has nice icons. Check it out. Yeah, I noticed the other day the old ones are like KDE2 style! Remember folks, this code base goes way back around 10 years. You may see some things in there that are old. > The file > preview for the wallpapers is disabled because Qt4 does not support > this yet. We can implement our own previewer in the future. > > As for the .ui files, I followed the directions at > http://doc.trolltech.com/4.7/porting4-designer.html > I used the "second approach" as it is the easiest way to port Qt3 > style .ui files. The new .ui files do not contain icons, so I had to > move the icons into their own files. > > If there is something wrong with the file dialogs please yell. > > Cheers, > Orcan I get [ 4%] Building CXX object muse/widgets/CMakeFiles/widgets.dir/filedialog.o /AUX2/misc/Source/lmuse-10302010-SVN/trunk/muse2/muse/widgets/filedialog.cpp: In constructor ‘MFileDialog::MFileDialog(const QString&, const QString&, QWidget*, bool)’: /AUX2/misc/Source/lmuse-10302010- SVN/trunk/muse2/muse/widgets/filedialog.cpp:172: error: ‘fromTheme’ is not a member of ‘QIcon’ /AUX2/misc/Source/lmuse-10302010- SVN/trunk/muse2/muse/widgets/filedialog.cpp:173: error: ‘fromTheme’ is not a member of ‘QIcon’ /AUX2/misc/Source/lmuse-10302010- SVN/trunk/muse2/muse/widgets/filedialog.cpp:174: error: ‘fromTheme’ is not a member of ‘QIcon’ make[2]: *** [muse/widgets/CMakeFiles/widgets.dir/filedialog.o] Error 1 make[1]: *** [muse/widgets/CMakeFiles/widgets.dir/all] Error 2 make: *** [all] Error 2 Aw crud, too old Qt version. I've got 4.5 Any way around it? Been meaning to upgrade, made the space, have to burn a CD of a distro and go. I'm out for now. Tim. |