From: Dominik S. <dom...@we...> - 2010-01-22 20:53:06
|
Hi, Thanks for this change! I commited it, as it should be fine. Though I do not think this was an error, the line was prefixed with "warning" using my compiler. A warning is dangerous and ugly, too, so it should be fixed sometimes and that is why your change is great. For the first porting issues I would concentrate on real errors though. I usually start with the first error, as you will make progress easier this way. But maybe this is only my personal style. While committing your change, I fixed a few ugly issues which are maybe very C++ specific. So it compiles a bit further now and I hope these changes will help you. Best regards, Dom Am Freitag 22 Januar 2010 schrieb Doug Ross: > Hello, > > I started to solve the last error message (I don't know if it's the > right start point ): > .../src/barcodecombo.cpp:319: attention : 'void > QWidget::setPaletteForegroundColor(const QColor&)' is deprecated > (declared at /usr/lib/qt4/include/QtGui/qwidget.h:1011) > > Using my best friend Google, and I searched about > "QWidget::setPaletteForegroundColor" and found a web page where the > following paragraph is displayed : > \oldcode > widget->setPaletteForegroundColor(color); > \newcode > QPalette palette; > palette.setColor(widget->foregroundRole(), color); > widget->setPalette(palette); > \endcode > > And in similar way, I modified line 319 as below : > .../src/barcodecombo.cpp:319: attention : 'void > QWidget::setPaletteForegroundColor(const QColor&)' is deprecated > (declared at /usr/lib/qt4/include/QtGui/qwidget.h:1011) > > \oldcode > widget->setPaletteForegroundColor(color); > \newcode > QPalette palette; > palette.setColor(widget->foregroundRole(), color); > widget->setPalette(palette); > \endcode > = 319 prev ================== > data->setPaletteForegroundColor( c ); > = 319 new ================== > QPalette palette; > palette.setColor(data->foregroundRole(), c); > data->setPalette(palette); > = 319 end new ================== > > I think it's the "beginner spirit" because after I tried to correct the > second error (down to top) at line 317 and... NO WAY ... > IMHO it's because I'm more able to perform "find/replace" than coding > C++ because I feel that line 317 error is very similar to line 319 > (about color/foreground/...) but... don't know how :o) > > I'll be happy to have you're feedback Dominik > > ++ > Nicolas > > Dominik Seichter a écrit : > > Hi, > > > > Am Mittwoch 20 Januar 2010 schrieb Doug Ross: > >> Hello Dominik, > >> > >> So, I followed your 4 steps and I reached the same point (error on the > >> same files). > >> I'll now "try to begin to try" to solve the errors... I think it'll take > >> me some time to understand how to do concretly but... you give me plenty > >> of URL/lecture so... I'll start reading. > >> > >> I'll inform you when I'll correct my first error but... don't worry > >> until 6month from now if you don't hear for me about error correction > >> :D. > > > > Great that you got so far! I think you will get into it quite well, so I > > should say sorry now for a few party of the code which are very old, very > > unstructured and not so good designed. But basic porting this should not > > be such much of a problem. > > > > Feel free to send even small patches to this list so that I can > > incorporate them. After you made the first progress and patches I could > > also setup SVN access for you, which should be more convinient. > > > > Regards, > > Dom > > > >> ++ > >> Nicolas > >> > >> Dominik Seichter a écrit : > >>> Hello Nicolas, > >>> > >>> I would be glad, if you could give porting KBarcode a try. > >>> > >>> The usual way to continue porting would be the following steps: > >>> > >>> 1. check out KBarcode from SVN: > >>> svn co https://kbarcode.svn.sf.net/svnroot/kbarcode/trunk kbarcode > >>> 2. create a build directory for KBarcode > >>> make kbarcode-build > >>> cd kbarcode-build > >>> 3. create cmake build system > >>> cmake ../kbarcode > >>> 4. try to build KBarcode > >>> make > >>> > >>> The build system for KDE4 should be working (just commited a fix for > >>> it) and make will stop on the first error in the source code which > >>> needs porting. The first errors for me are in the files barkode.h and > >>> barcodecombo.cpp > >>> > >>> Most problems should be due to porting issues from KDE3 to KDE4 or from > >>> Qt3 to Qt4. Useful information can be found here: > >>> > >>> http://techbase.kde.org/Welcome_to_KDE_TechBase > >>> http://api.kde.org/ > >>> http://techbase.kde.org/Development/Tutorials > >>> http://techbase.kde.org/Development/Tutorials/KDE4_Porting_Guide > >>> http://qt.nokia.com/doc/4.5/index.html > >>> > >>> Well, and maybe you should read a small C++ tutorial, but this should > >>> get you started. If you have questions, feel free to ask on this list. > >>> I would prefer to discuss porting on the mailing list, as other people > >>> might also be interested in this kind information and maybe we can find > >>> someone to join the porting efforts. > >>> > >>> Best regards, > >>> Dom > >>> > >>> Am Dienstag 19 Januar 2010 schrieb Doug Ross: > >>>> Hello Dom, > >>>> > >>>> I'm not familliar in develloping such "large application". > >>>> I'm more familiar with shell or perl script and I suppose that > >>>> Kbarcode is devellopted using C/C++ (witch I don't know), but... if I > >>>> can help, I could try. > >>>> > >>>> What is the way/method for migrating Kbarcode from KDE3 to KDE4 ? > >>>> You could contact me directly thru mail if you want. > >>>> > >>>> ++ > >>>> Nicolas > >>>> > >>>> Dominik Seichter a écrit : > >>>>> Hi Nicolas, > >>>>> > >>>>> We started to port KBarcode to KDE4 in svn at: > >>>>> https://kbarcode.svn.sf.net/svnroot/kbarcode/trunk > >>>>> > >>>>> Unfortunately we did not get very far and did not made any progress > >>>>> for the last year, because no one seems to have time at the moment. > >>>>> If anyone wants to continue the porting effort, I would love to help. > >>>>> Though I cannot do any work for myself at the moment. > >>>>> > >>>>> Best regards, > >>>>> Dom > >>>>> > >>>>> Am Dienstag 19 Januar 2010 schrieb Doug Ross: > >>>>>> Hello all, > >>>>>> > >>>>>> I'm looking for an application that allow to create barcode labels > >>>>>> including additional comments so I think Kbarcode will fully match > >>>>>> my needs. > >>>>>> > >>>>>> My issue is that I run Mandriva 2010 with KDE4 and... Kbarcode seems > >>>>>> to not compile at all with KDE4. > >>>>>> I tried to compile Kbarcode 2.0.7 and "configure" fail when reaching > >>>>>> "KDE" phase with the following message : > >>>>>> ---------- > >>>>>> checking for KDE... configure: error: > >>>>>> in the prefix you've chosen, are no KDE libraries installed. This > >>>>>> will fail. So, check this please and use another prefix! > >>>>>> ---------- > >>>>>> > >>>>>> Is there some way to compile Kbarcode with KDE4 ? > >>>>>> > >>>>>> ++ > >>>>>> Nicolas > >>>>>> > >>>>>> > >>>>>> -------------------------------------------------------------------- > >>>>>>-- -- --- --- Throughout its 18-year history, RSA Conference > >>>>>> consistently attracts the world's best and brightest in the field, > >>>>>> creating opportunities for Conference attendees to learn about > >>>>>> information security's most important issues through interactions > >>>>>> with peers, luminaries and emerging and established companies. > >>>>>> http://p.sf.net/sfu/rsaconf-dev2dev > >>>>>> _______________________________________________ > >>>>>> Kbarcode-users mailing list > >>>>>> Kba...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/kbarcode-users > >>>> > >>>> ---------------------------------------------------------------------- > >>>>-- --- --- Throughout its 18-year history, RSA Conference consistently > >>>> attracts the world's best and brightest in the field, creating > >>>> opportunities for Conference attendees to learn about information > >>>> security's most important issues through interactions with peers, > >>>> luminaries and emerging and established companies. > >>>> http://p.sf.net/sfu/rsaconf-dev2dev > >>>> _______________________________________________ > >>>> Kbarcode-users mailing list > >>>> Kba...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/kbarcode-users > >> > >> ------------------------------------------------------------------------ > >>--- --- Throughout its 18-year history, RSA Conference consistently > >> attracts the world's best and brightest in the field, creating > >> opportunities for Conference attendees to learn about information > >> security's most important issues through interactions with peers, > >> luminaries and emerging and established companies. > >> http://p.sf.net/sfu/rsaconf-dev2dev > >> _______________________________________________ > >> Kbarcode-users mailing list > >> Kba...@li... > >> https://lists.sourceforge.net/lists/listinfo/kbarcode-users > > --------------------------------------------------------------------------- > --- Throughout its 18-year history, RSA Conference consistently attracts > the world's best and brightest in the field, creating opportunities for > Conference attendees to learn about information security's most important > issues through interactions with peers, luminaries and emerging and > established companies. http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Kbarcode-users mailing list > Kba...@li... > https://lists.sourceforge.net/lists/listinfo/kbarcode-users > -- ********************************************************************** Dominik Seichter - dom...@we... KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE Alan - http://alan.sf.net - A Turing Machine in Java ********************************************************************** |