Re: [Qt-creator] Font size in QtCreator application

2010-02-04 Thread Tomás Ortí
Yes, that did it, thank you.
The buttons still have small font, but resizing the menus is fine for me.

On Thu, Feb 4, 2010 at 12:40 PM, André Pönitz wrote:

> On Thursday 04 February 2010 12:30:13 ext Tomás Ortí wrote:
> > Hi.
> > I’m using QtCreator and it is cool.
> > I’ve tried it in Ubuntu and Suse.
> >
> > But the font size of the menus, buttons, tools etc... is quite small.
> > Is there a way to customize that?
> > I’ve tried with gnome-control-center and kcontrol, with no luck.
> > The default applications using Gnome (GTK) and Kde (Qt) change its size,
> but not QtCreator.
>
> qtconfig seems to work for me.
>
> Andre'
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Kuiper, Luuk
Hi there,

Where is that funnel, you said?
In the attachment you see my 'Build Issues'pane.
Is there an option to switch it on?
I use the exlamation mark in the yellow triangle to filter out the warnings, 
but that is all.

I am using QtCreator 1.3.1. OpenSuse 11.1.

Luuk Kuiper

- Original Message -
From: "Brian McGillion" 
To: qt-creator@trolltech.com
Sent: Thursday, February 4, 2010 5:23:52 PM GMT +01:00 Amsterdam / Berlin / 
Bern / Rome / Stockholm / Vienna
Subject: Re: [Qt-creator] Clickable gcc output to go to error location

Hi,

There is a little icon that looks like a funnel, beside the drop down
box.  It too is a drop down box and allows you to filter what is
displayed in the build issues pane.  Make sure that "compile" is
ticked. 

Br,
Brian

On Thu, 2010-02-04 at 17:06 +0100, Daniel Lidström wrote:
> Hi Brian, 
> 
> > On the bottom of the editor pane there is another output pane.  In the
> > top left corner of this pane there is a drop down box.  There is one
> > option called "compile output", I think this is what you are 
> > looking at.
> > there is also an option called "build issues"  This has all the errors
> > and warnings from the compile output, but it is click-able.
> 
> I see this pane. Unfortunately the Build Issues pane is always empty.
> What am I missing?
> 
> /Daniel
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

-- 

<>___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] QtCreator 1.3.1 startup very slow

2010-02-04 Thread YW Dou
Hi,

QtCreator1.3.1 is very slow at startup time, it will take 20 seconds or
more. I had made an in-depth investigation. If the feature--fetching rss is
disabled via commenting out the following line (in this file
C:\qt-creator-src-1.3.1\src\plugins\welcome\communitywelcomepagewidget.cpp
in my computer), it can show up in 2 or 3 seconds.

//m_rssFetcher->fetch(QUrl(tr("http://labs.trolltech.com/blogs/feed";)));

Is there a better way to fetch rss?


Regards,
Yongwang Dou
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Font size in QtCreator application

2010-02-04 Thread Victor Sardina

Tomas:


André provided the right answer (as usual). When tweaking the settings
via qtconfig, however, I recommend writing down the current font
settings. Also make sure that you don't set a font that would render the
qt settings via qtconfig into a blind hunt (even the menus can turn
totally unreadable (including the font names themselves) if you make an
unfortunate change.

Victor

André Pönitz wrote:
> On Thursday 04 February 2010 12:30:13 ext Tomás Ortí wrote:
>> Hi.
>> I’m using QtCreator and it is cool.
>> I’ve tried it in Ubuntu and Suse.
>>
>> But the font size of the menus, buttons, tools etc... is quite small.
>> Is there a way to customize that?
>> I’ve tried with gnome-control-center and kcontrol, with no luck.
>> The default applications using Gnome (GTK) and Kde (Qt) change its size, but 
>> not QtCreator.
> 
> qtconfig seems to work for me.
> 
> Andre'
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

<>___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to compile Qt-creator to support MADDE and on-device debugging?

2010-02-04 Thread Rudenko Eugene
Here is compilation problem:
g++ -c -pipe -fPIC -ansi -fpermissive -finline-functions -Wno-long-long -g 
-gdwarf-2 -arch i386 -fvisibility=hidden -arch ppc -Wall -W -fPIC 
-DIDE_LIBRARY_BASENAME=\"lib\" -DWITH_TESTS -DQT_NO_CAST_TO_ASCII 
-DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/local/Qt4.6/mkspecs/macx-g++ 
-I/Users/rule/development/qt-creator_git/src/libs/3rdparty/botan/src 
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore 
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui 
-I/Library/Frameworks/QtTest.framework/Versions/4/Headers -I/usr/include/QtTest 
-I/usr/include -I/Users/rule/development/qt-creator_git/src/libs 
-I/Users/rule/development/qt-creator_git/tools 
-I/Users/rule/development/qt-creator_git/src/libs/3rdparty/botan/src 
-I/Users/rule/development/qt-creator_git/src/libs/3rdparty/botan/build 
-I/Users/rule/development/qt-creator_git/src/libs/3rdparty/botan/build/botan 
-I.moc/debug-shared -I. -F/Library/Frameworks -o .obj/debug-shared/asn1_alt.o 
/Users/rule/development/qt-creator_git/src/libs/3rdparty/botan/src/asn1/asn1_alt.cpp
{standard input}:222:Invalid mnemonic 'bswapl'
lipo: can't open input file: 
/var/folders/xd/xdkKsgRnHOypmhVyhf4XtU+++TI/-Tmp-//ccUf4MXb.out (No such file 
or directory)
make[5]: *** [.obj/debug-shared/asn1_alt.o] Error 1
make[4]: *** [sub-src-make_default-ordered] Error 2
make[3]: *** [sub-botan-make_default-ordered] Error 2
make[2]: *** [sub-3rdparty-make_default-ordered] Error 2
make[1]: *** [sub-libs-make_default-ordered] Error 2
make: *** [sub-src-make_default-ordered] Error 2

It looks like compiler is able to understand asm bswapl mnemonic. I'll try to 
find solution tomorrow, maybe it's one of already known issues ?

Waiting for your reply.

On Feb 4, 2010, at 3:23 PM, Karsten Heimrich wrote:

> Hi,
> 
> ext Rudenko Eugene schrieb:
>> Hello, I tried to build qt-creator to support madde, I found that there are 
>> some ssl lib, used for on-device development.
>> 
>> How to build Qt-creator for madde,
> 
> As I wrote in my last reply to you, one has to build Qt Creator 
> from master. Export an env var like this: export 
> QTCREATOR_WITH_MAEMO=1 and (re)run qmake. Once that has finished 
> just compile the source as usual.
> 
>> is there are some external dependencies ?
> 
> No, there are no external dependencies other then the sources 
> inside our repository.
> 
>> And is it possible to build some dev preview for MADDE development and share 
>> it, like it was made for declarative interface support demonstration.
> 
> Since we consider the implementation experimental, we won't ship 
> or promote it right now. Once it is stable enough we will enable 
> the feature by default, announce it and provide snapshots, 
> documentation etc.
> 
> 
> Regards,
> -- 
> Karsten Heimrich - karsten.heimrich (AT) nokia.com
> Software Engineer - Nokia, Qt Development Frameworks
> Rudower Chaussee 13, 12489 Berlin, Germany
> 
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Please dont skip typedefs when "Follow Symbol under cursor"

2010-02-04 Thread Arto Karppinen
Or, atleast dont do it when templates are involved.

For example i have things like this in my code:

Api::GetChatUsers* get_users = new Api::GetChatUsers(connection_);

When i select GetChatUsers and press F2, i end up here:

template  class RpcTemplate
: public RpcResponse

Which tells me nothing about the actual type GetChatUsers, because it is
defined like this elsewhere:

typedef RpcTemplate
GetChatUsers;

The same problem also happens if you typedef QHash
and then use that typedef.


I think it makes sense to typedef complex template usages, and Qt
creator should take you to where the typedef is defined instead of where
the template is defined.

-- 
Arto Karppinen
--
arto.karppi...@iki.fi
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread John Vilburn
I don't care much about the guard name, so if Qt Creator had a way to fix that 
in the header I would be happy with whatever format Qt used. It is fine to 
leave the renaming of files and the changing of guard names and #include 
references as an option that can be turned off for those people who like to do 
more work manually. But it is an essential option. Anything that can be 
automated, should be.

John

On Feb 4, 2010, at 3:40 AM, Danny Price wrote:

> 
> 
> On Thu, Feb 4, 2010 at 12:49 PM, Gena Cid  wrote:
> This is too strong! And too complex: think, for example, about doxygen 
> comments. And about guard' names (I mean #ifndef-#define-#endif). And cmake- 
> or Makefile-based projects?
> 
> I would say that guard names and comments are up to the user to fix. That's 
> trivial next to the hoops you currently have to jump through to refactor 
> files in Creator.
> 
>  
> 
> If this feature be in QtC sometime, it must be an option!
> 
> -|-
> Gena.
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to compile Qt-creator to support MADDE and on-device debugging?

2010-02-04 Thread Rudenko Eugene
Ok, thank you for your reply, when I tried to compile with 
QTCREATOR_WITH_MAEMO=1 after our last conversation, I got some errors, and it 
looked like dependency issue. But I'll try one more to describe it more 
detailed.

And may I put binary with maemo support for public access by myself, to make 
people try this feature? Is it restricted?

With best regards.
> Hi,
> 
> ext Rudenko Eugene schrieb:
>> Hello, I tried to build qt-creator to support madde, I found that there are 
>> some ssl lib, used for on-device development.
>> 
>> How to build Qt-creator for madde,
> 
> As I wrote in my last reply to you, one has to build Qt Creator 
> from master. Export an env var like this: export 
> QTCREATOR_WITH_MAEMO=1 and (re)run qmake. Once that has finished 
> just compile the source as usual.
> 
>> is there are some external dependencies ?
> 
> No, there are no external dependencies other then the sources 
> inside our repository.
> 
>> And is it possible to build some dev preview for MADDE development and share 
>> it, like it was made for declarative interface support demonstration.
> 
> Since we consider the implementation experimental, we won't ship 
> or promote it right now. Once it is stable enough we will enable 
> the feature by default, announce it and provide snapshots, 
> documentation etc.
> 
> 
> Regards,
> -- 
> Karsten Heimrich - karsten.heimrich (AT) nokia.com
> Software Engineer - Nokia, Qt Development Frameworks
> Rudower Chaussee 13, 12489 Berlin, Germany
> 
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Tobias Hunger
Hi Daniel!

Which Toolchain is selected for your project? (Project mode, General, 
show details)

Which build steps are you using exactly? I assume a Make one?

QtCreator parses the output of the compiler. Which Output parser is used 
depends on the toolchain as well as the make command. GCC should 
noirmally work;-)

Best Regards,
Tobias

On 04.02.2010 16:27, ext Daniel Lidström wrote:
> Hello!
>
> I have recently tried out the excellent Qt Creator 1.3.1. It works very well 
> for me on Ubuntu 9.10.
> However, when I compile my Makefile-based project that calls make, I am 
> unable to click the output
> to go to error locations provided by gcc. This would be very useful, but I 
> don't know the level of
> support. Here's a sample output from my compilation:
>
> Running build steps for project UMC3D...
> Starting: /usr/bin/make jam
> bjam toolset=gcc-4 -j3
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> ...found 13499 targets...
> ...updating 13 targets...
> gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o
> /home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:111:2:
>  warning: #warning We have to figure out a better way to handle the priorities
> In file included from 
> /home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:15:
> GeoROG/Publisher/BucketControllerTopic.h:52: error: 'BucketTouchPoint' has 
> not been declared
> GeoROG/Publisher/BucketControllerTopic.h:79: error: 'BucketTouchPoint' does 
> not name a type
> GeoROG/Publisher/BucketControllerTopic.h:91: error: 'BucketTouchPoint' does 
> not name a type
>
> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -Winvalid-pch 
> `pkg-config --cflags glib-2.0` `pkg-config --cflags libpng` 
> -DBOOST_BUILD_PCH_ENABLED -DDEBUGMODE=0 -DGR_BUILD_TIME=1228923841 
> -DGR_MAJOR_VERSION=99 -DGR_MINOR_VERSION=99 -DGR_PATCH_VERSION=99 
> -DGR_SYSTEM_VERSION= -DHAS_OBJECT_MANAGER -DMIKROFYN_GEOROG=NO 
> -DNO_EXARDRV -DPRODUCT_VERSION='"Jam"' -DSEARCH_FOR_LOCK=0 -D_DEBUG 
> -I"GeoROG/bin/gcc-4/debug" 
> -I"/home/daniel/projects/Vendor/Alglib/2.0.0.stable" 
> -I"/home/daniel/projects/Vendor/Boost/include/boost-1_37" 
> -I"/home/daniel/projects/Vendor/LeicaAuth" 
> -I"/home/daniel/projects/Vendor/LeicaTGS/trunk" 
> -I"/home/daniel/projects/Vendor/newmat/11" -I"GFL" -I"GFL/CAN/include" 
> -I"GFL/Convert/include" -I"GFL/Device/include" -I"GFL/Dialogs/include" 
> -I"GFL/File/include" -I"GFL/FileCommunicator/include" 
> -I"GFL/Kinematics/include" -I"GFL/LandXML/include" -I"GFL/Map/include" 
> -I"GFL/Model/include" -I"GFL/ProtocolHandler/include" 
> -I"GFL/Publisher/include" -I"GFL/Refe
renceModel/include" -I"GFL/Transform/include" -I"GFL/Xml/include" -I"GeoROG" 
-I"SBGFLTK" -c -o "GeoROG/bin/gcc-4/debug/GeoWarningPopup.o" 
"/home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp"
>
> ...failed gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o...
> .
> .
> .
>
> My project uses Makefile to launch Boost Build. As you see the output is 
> regular gcc, but I can't click to go to BucketControllerTopic.h line 52.
> Is there a way to enable this support?
>
> Thanks in advance!
>
> Regards,
>
> Daniel Lidström
> Stockholm, Sweden
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Very slow GDB when stepping into functions

2010-02-04 Thread Andre Poenitz
On Thu, Feb 04, 2010 at 06:36:21PM +0100, Peter Kümmel wrote:
> Maybe someone also wonders why stepping into a function
> takes several tens of seconds at 100% CPU usage of gdb.
> Here's the answer for Debian based systems: 
> 
> "Debugging symbols for ld.so are not shipped"
> http://blogs.gnome.org/jjongsma/2007/01/08/gdb-slowness/
> 
> Therefore this:
>sudo apt-get install libc6-dbg
> solves the problems on my Ubuntu machine.
> 
> Could someone please update the QtCreator Wiki:
> http://qt.gitorious.org/qt-creator/pages/FrequentlyAskedQuestions#Debugger

That's interesting as I recently looked into a similar problem and
tracked it down to the use of the wrong algorithm for symbol lookup, see
http://sourceware.org/bugzilla/show_bug.cgi?id=11198 .

This particular issue has been fixed in the mean time in gdb.

I wonder whether our problems are related, and if so, how such
completely different solutions can be possible.

Could you do me a favour and check whether uninstalling the libc6-dbg
package and using a recent gdb from CVS also fixes your problem?

Andre'

PS: Of course we can add the hint to the FAQ.

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Compile-time signal and slot checking

2010-02-04 Thread Peter Kümmel
Am Dienstag, den 02.02.2010, 09:01 + schrieb Danny Price:
> I doubt this is possible at compile time as the connections are only
> made at runtime. If it helps, connect() returns false if a connection
> fails which you can use to catch with a macro.

It's possible with some template/macro mixture, the compiler 
then also could check the arguments.

But as I could remember I had to make the signals public.

Peter

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Very slow GDB when stepping into functions

2010-02-04 Thread Peter Kümmel
Maybe someone also wonders why stepping into a function
takes several tens of seconds at 100% CPU usage of gdb.
Here's the answer for Debian based systems: 

"Debugging symbols for ld.so are not shipped"
http://blogs.gnome.org/jjongsma/2007/01/08/gdb-slowness/

Therefore this:
   sudo apt-get install libc6-dbg
solves the problems on my Ubuntu machine.

Could someone please update the QtCreator Wiki:
http://qt.gitorious.org/qt-creator/pages/FrequentlyAskedQuestions#Debugger

Peter

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Plugin: open bugtracker links from comments

2010-02-04 Thread Coda Highland
2010/2/4 Thorbjørn Lindeijer :
> On 02/04/2010 03:26 PM, ext Liebe Markus (RtP2/TEF72) wrote:
>> Now I need to somehow get a trigger that somebody clicked with the mouse on 
>> the Link.
>> Normally I would do this by writing my own ::mousePressEvent(QMouseEvent *e) 
>> function. But in this case I cannot do that because I am not implementing an 
>> own BaseTextEditor but instead another plugin.
>>
>> The only thing that I can use to work with in my plugin is a Pointer to an 
>> BaseTextEditor.
>> Do you have any idea how I can get the mousePressEvent from there? Sadly 
>> there are no signals containing the desired information in BaseTextEditor or 
>> its base classes.
>
> There is currently no way, as I said this will require some refactoring
> in the way the links are added.
>
> Specifically, there would need to be an interface that can be
> implemented by plugins to add new types of links and that has a method
> that is called when the link is clicked.

As a suggestion: Would it be more feasible, then, to add a new item to
the right-click menu on these links? I think I'd prefer that over a
left-click behavior anyway.

/s/ Adam

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Heiko Gerdau
Am Donnerstag, 4. Februar 2010 17:06:02 schrieb Daniel Lidström:
> Hi Brian,
> 
> > On the bottom of the editor pane there is another output pane.  In the
> > top left corner of this pane there is a drop down box.  There is one
> > option called "compile output", I think this is what you are
> > looking at.
> > there is also an option called "build issues"  This has all the errors
> > and warnings from the compile output, but it is click-able.
> 
> I see this pane. Unfortunately the Build Issues pane is always empty.
> What am I missing?

you probably redirect stderr. Something like (2>&1). QtCreator does not like 
that. The compile output parser seem to relay on stderr.
Just remove the 2>&1 from your Makefile and it will populate the build issue 
pane as aspected.

Regards
Heiko  


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Plugin: open bugtracker links from comments

2010-02-04 Thread Thorbjørn Lindeijer
On 02/04/2010 03:26 PM, ext Liebe Markus (RtP2/TEF72) wrote:
> Now I need to somehow get a trigger that somebody clicked with the mouse on 
> the Link.
> Normally I would do this by writing my own ::mousePressEvent(QMouseEvent *e) 
> function. But in this case I cannot do that because I am not implementing an 
> own BaseTextEditor but instead another plugin.
>
> The only thing that I can use to work with in my plugin is a Pointer to an 
> BaseTextEditor.
> Do you have any idea how I can get the mousePressEvent from there? Sadly 
> there are no signals containing the desired information in BaseTextEditor or 
> its base classes.

There is currently no way, as I said this will require some refactoring 
in the way the links are added.

Specifically, there would need to be an interface that can be 
implemented by plugins to add new types of links and that has a method 
that is called when the link is clicked.

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Development Frameworks
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Brian McGillion
Hi,

There is a little icon that looks like a funnel, beside the drop down
box.  It too is a drop down box and allows you to filter what is
displayed in the build issues pane.  Make sure that "compile" is
ticked. 

Br,
Brian

On Thu, 2010-02-04 at 17:06 +0100, Daniel Lidström wrote:
> Hi Brian, 
> 
> > On the bottom of the editor pane there is another output pane.  In the
> > top left corner of this pane there is a drop down box.  There is one
> > option called "compile output", I think this is what you are 
> > looking at.
> > there is also an option called "build issues"  This has all the errors
> > and warnings from the compile output, but it is click-able.
> 
> I see this pane. Unfortunately the Build Issues pane is always empty.
> What am I missing?
> 
> /Daniel
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator



signature.asc
Description: This is a digitally signed message part
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Daniel Lidström
Hi Brian, 

> On the bottom of the editor pane there is another output pane.  In the
> top left corner of this pane there is a drop down box.  There is one
> option called "compile output", I think this is what you are 
> looking at.
> there is also an option called "build issues"  This has all the errors
> and warnings from the compile output, but it is click-able.

I see this pane. Unfortunately the Build Issues pane is always empty.
What am I missing?

/Daniel

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Brian McGillion
Hi,

On the bottom of the editor pane there is another output pane.  In the
top left corner of this pane there is a drop down box.  There is one
option called "compile output", I think this is what you are looking at.
there is also an option called "build issues"  This has all the errors
and warnings from the compile output, but it is click-able.

Br,
Brian


On Thu, 2010-02-04 at 16:27 +0100, Daniel Lidström wrote:
> Hello!
> 
> I have recently tried out the excellent Qt Creator 1.3.1. It works very well 
> for me on Ubuntu 9.10.
> However, when I compile my Makefile-based project that calls make, I am 
> unable to click the output
> to go to error locations provided by gcc. This would be very useful, but I 
> don't know the level of
> support. Here's a sample output from my compilation:
> 
> Running build steps for project UMC3D...
> Starting: /usr/bin/make jam 
> bjam toolset=gcc-4 -j3
> ...patience...
> ...patience...
> ...patience...
> ...patience...
> ...found 13499 targets...
> ...updating 13 targets...
> gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o
> /home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:111:2:
>  warning: #warning We have to figure out a better way to handle the priorities
> In file included from 
> /home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:15:
> GeoROG/Publisher/BucketControllerTopic.h:52: error: 'BucketTouchPoint' has 
> not been declared
> GeoROG/Publisher/BucketControllerTopic.h:79: error: 'BucketTouchPoint' does 
> not name a type
> GeoROG/Publisher/BucketControllerTopic.h:91: error: 'BucketTouchPoint' does 
> not name a type
> 
> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -Winvalid-pch 
> `pkg-config --cflags glib-2.0` `pkg-config --cflags libpng` 
> -DBOOST_BUILD_PCH_ENABLED -DDEBUGMODE=0 -DGR_BUILD_TIME=1228923841 
> -DGR_MAJOR_VERSION=99 -DGR_MINOR_VERSION=99 -DGR_PATCH_VERSION=99 
> -DGR_SYSTEM_VERSION= -DHAS_OBJECT_MANAGER -DMIKROFYN_GEOROG=NO 
> -DNO_EXARDRV -DPRODUCT_VERSION='"Jam"' -DSEARCH_FOR_LOCK=0 -D_DEBUG 
> -I"GeoROG/bin/gcc-4/debug" 
> -I"/home/daniel/projects/Vendor/Alglib/2.0.0.stable" 
> -I"/home/daniel/projects/Vendor/Boost/include/boost-1_37" 
> -I"/home/daniel/projects/Vendor/LeicaAuth" 
> -I"/home/daniel/projects/Vendor/LeicaTGS/trunk" 
> -I"/home/daniel/projects/Vendor/newmat/11" -I"GFL" -I"GFL/CAN/include" 
> -I"GFL/Convert/include" -I"GFL/Device/include" -I"GFL/Dialogs/include" 
> -I"GFL/File/include" -I"GFL/FileCommunicator/include" 
> -I"GFL/Kinematics/include" -I"GFL/LandXML/include" -I"GFL/Map/include" 
> -I"GFL/Model/include" -I"GFL/ProtocolHandler/include" 
> -I"GFL/Publisher/include" -I"GFL/ReferenceModel/include" 
> -I"GFL/Transform/include" -I"GFL/Xml/include" -I"GeoROG" -I"SBGFLTK" -c -o 
> "GeoROG/bin/gcc-4/debug/GeoWarningPopup.o" 
> "/home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp"
> 
> ...failed gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o...
> .
> .
> .
> 
> My project uses Makefile to launch Boost Build. As you see the output is 
> regular gcc, but I can't click to go to BucketControllerTopic.h line 52.
> Is there a way to enable this support?
> 
> Thanks in advance!
> 
> Regards,
> 
> Daniel Lidström
> Stockholm, Sweden
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator



signature.asc
Description: This is a digitally signed message part
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Frank Siegert
Hi Daniel,

Daniel Lidström, Thursday 04 February 2010:
> I have recently tried out the excellent Qt Creator 1.3.1. It works very
>  well for me on Ubuntu 9.10. However, when I compile my Makefile-based
>  project that calls make, I am unable to click the output to go to
>  error locations provided by gcc. This would be very useful, but I
>  don't know the level of support.

Creator should parse your compile output and then identify all build 
issues in a separate pane (the first one -- Build Issues). In there it is 
clickable and actually even keyboard-shortcutable.

This works very well for me even for a Makefile-based project.

Frank

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Clickable gcc output to go to error location

2010-02-04 Thread Daniel Lidström
Hello!

I have recently tried out the excellent Qt Creator 1.3.1. It works very well 
for me on Ubuntu 9.10.
However, when I compile my Makefile-based project that calls make, I am unable 
to click the output
to go to error locations provided by gcc. This would be very useful, but I 
don't know the level of
support. Here's a sample output from my compilation:

Running build steps for project UMC3D...
Starting: /usr/bin/make jam 
bjam toolset=gcc-4 -j3
...patience...
...patience...
...patience...
...patience...
...found 13499 targets...
...updating 13 targets...
gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o
/home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:111:2:
 warning: #warning We have to figure out a better way to handle the priorities
In file included from 
/home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp:15:
GeoROG/Publisher/BucketControllerTopic.h:52: error: 'BucketTouchPoint' has not 
been declared
GeoROG/Publisher/BucketControllerTopic.h:79: error: 'BucketTouchPoint' does not 
name a type
GeoROG/Publisher/BucketControllerTopic.h:91: error: 'BucketTouchPoint' does not 
name a type

"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -Winvalid-pch 
`pkg-config --cflags glib-2.0` `pkg-config --cflags libpng` 
-DBOOST_BUILD_PCH_ENABLED -DDEBUGMODE=0 -DGR_BUILD_TIME=1228923841 
-DGR_MAJOR_VERSION=99 -DGR_MINOR_VERSION=99 -DGR_PATCH_VERSION=99 
-DGR_SYSTEM_VERSION= -DHAS_OBJECT_MANAGER -DMIKROFYN_GEOROG=NO -DNO_EXARDRV 
-DPRODUCT_VERSION='"Jam"' -DSEARCH_FOR_LOCK=0 -D_DEBUG 
-I"GeoROG/bin/gcc-4/debug" -I"/home/daniel/projects/Vendor/Alglib/2.0.0.stable" 
-I"/home/daniel/projects/Vendor/Boost/include/boost-1_37" 
-I"/home/daniel/projects/Vendor/LeicaAuth" 
-I"/home/daniel/projects/Vendor/LeicaTGS/trunk" 
-I"/home/daniel/projects/Vendor/newmat/11" -I"GFL" -I"GFL/CAN/include" 
-I"GFL/Convert/include" -I"GFL/Device/include" -I"GFL/Dialogs/include" 
-I"GFL/File/include" -I"GFL/FileCommunicator/include" 
-I"GFL/Kinematics/include" -I"GFL/LandXML/include" -I"GFL/Map/include" 
-I"GFL/Model/include" -I"GFL/ProtocolHandler/include" -I"GFL/Publisher/include" 
-I"GFL/ReferenceModel/include" -I"GFL/Transform/include" -I"GFL/Xml/include" 
-I"GeoROG" -I"SBGFLTK" -c -o "GeoROG/bin/gcc-4/debug/GeoWarningPopup.o" 
"/home/daniel/projects/workspaces/GEOROG-2598/GeoROG/GUI/Widget/GeoWarningPopup.cpp"

...failed gcc.compile.c++ GeoROG/bin/gcc-4/debug/GeoWarningPopup.o...
.
.
.

My project uses Makefile to launch Boost Build. As you see the output is 
regular gcc, but I can't click to go to BucketControllerTopic.h line 52.
Is there a way to enable this support?

Thanks in advance!

Regards,

Daniel Lidström
Stockholm, Sweden

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Plugin: open bugtracker links from comments

2010-02-04 Thread Liebe Markus (RtP2/TEF72)
Hi Bjørn,

> BaseTextEditor supports extra selections which you can use to
> highlight
> certain parts of the text. This is used for the highlighting
> of unused
> variables, the links and marking of warnings/errors.

Thanks for this hint. I was able to highlight our Bugtracker comments using the 
QTextEdit::ExtraSelections!

Now I need to somehow get a trigger that somebody clicked with the mouse on the 
Link.
Normally I would do this by writing my own ::mousePressEvent(QMouseEvent *e) 
function. But in this case I cannot do that because I am not implementing an 
own BaseTextEditor but instead another plugin.

The only thing that I can use to work with in my plugin is a Pointer to an 
BaseTextEditor.
Do you have any idea how I can get the mousePressEvent from there? Sadly there 
are no signals containing the desired information in BaseTextEditor or its base 
classes.

Thanks,
Markus

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Shadow build problems

2010-02-04 Thread Stephen Chu
In article <8a7799fa-908a-4e7b-b171-4d8e84d15...@nokia.com>,
 Eike Ziller  wrote:

> On Feb 4, 2010, at 1:41 AM, ext Stephen Chu wrote:

> > 
> > 2. On Windows, rcc.exe reports that the qrc file does not exist. I think 
> > it's given a relative path from the build folder but the working dir is 
> > the project dir. Placing the shadow dir next to the project one solves 
> > it.
> 
> Yeah, we should really give a warning in Qt Creator if you specify a shadow 
> build directory that qmake can't handle.

Actually Creator should handle this easily. It's just that rcc is given 
a path relative to the shadow build dir but it's set to work in the 
project dir. Setting the working dir of rcc to the shadow build dir will 
fix that. But I am not sure if this is a Creator or qmake issue.

Say my project is at C:\Projects\MyProject\MyProject.pro and the shadow 
build directory is set to C:\Shadow\

When compiling C:\Projects\MyProject\MyProject.qrc, rcc is given a path 
"..\Projects\MyProject\MyProject.qrc" which is a relative path 
calculated from C:\Shadow\ but rcc is set to use C:\Projects\MyProject\ 
as its working directory from where the given input path is wrong.

That's why using a shadow build directory next to the project dir works. 
The relative path to the qrc file is the same calculating from both 
directories.

I hope this is a easy fix. Easy for me to say. :)

-- 
Stephen Chu
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] EmacsKeys - a Qt Creator plugin

2010-02-04 Thread Felix Berger
Hey Wilhelm,

thanks for trying it out.

I'll look at the command id and fix that.

For C-x,C-s and some other keys to work you have to go to Options ->
Environment -> Keyboard and Import the EmacsKeys.kms file in the
emacskeys project folder.

Did other keys work for you, e.g. C-a, M-d, C-k, etc?

Cheers,
Felix

On Thu, Feb 4, 2010 at 2:47 AM, Wilhelm  wrote:
> Felix Berger schrieb:
>> Hi Wilhelm,
>>
>> I added a branch called v1.3.1 that builds against Qt Creator's
>> v.1.3.1 branch. Hope that works for you.
>>
> thanks for the branch!
>
> Unfortunately it doesn't work:
>
> command = actionManager->command("QtCreator.Sidebar.File System");
>
> returns 0, so I suppose the command does not exist.
>
> The pointer isn't checked, so it crashed ;-)
>
> After commenting this it compiles and runs but the bindings aren't
> active (e.g. C-x  C-s doesn't save the file, still it is C-s)
>
>> Felix
>>
>> On Mon, Feb 1, 2010 at 12:55 PM, Wilhelm  wrote:
>>
>>> Hi,
>>>
>>> Felix Berger schrieb:
>>>
 Hi,

 I'm pleased to announce EmacsKeys, a plugin for Qt Creator that
 provides basic Emacs key bindings and functionality.


>>> great!
>>>
 Project page: http://github.com/fberger/emacskeys
 Git repository: git://github.com/fberger/emacskeys.git


>>> can't build that with qtcreator-1.3.1. Can you update the plugin?
>>>
>>>
 EmacsKeys provides the following features:

 * EmacsKeys.kms - A Keyboard Mapping Scheme for Qt Creator that can be
 imported in Options -> Environment -> Keyboard. It overrides some of the
 standard key bindings used in Qt Creator and replaces them with Emacs
 ones: C-s, C-x,s, C-x,C-s, C-x,C-w.

 * Kill ring - the Emacs kill ring allows you to maintain a history of your
 clipboards content. Caveat: It only works when text is inserted into it 
 with
 C-W, M-w, C-k, M-d and M-Backspace.

 * The following keys work as expected: C-n, C-p, C-a, C-e, C-b, C-f, M-b, 
 M-f,
   M-d, M-Backspace, C-d, M-<, M->, C-v, M-v, C-Space, C-k, C-y, M-y, C-w, 
 M-w.

 * C-x,b opens the quick open dialog at the bottom left.

 * C-x,C-b switches to the File System view on the left.

 * M-/ triggers the code completion that is triggered by C-Space normally.

 * Mnemonics are removed from some of the menus to allow conflicting Emacs 
 keys
   to work.


 The code works, but is not very clean at this point. If there was any
 interest in making this part of the official distribution at some
 point, I'd be happy to make it comply with any guidelines.

 Cheers,
 Felix
 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator


>>> --
>>> Wilhelm
>>>
>>>
>>> ___
>>> Qt-creator mailing list
>>> Qt-creator@trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>>
>>>
>>>
>>
>> ___
>> Qt-creator mailing list
>> Qt-creator@trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
> --
> Wilhelm
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Danny Price
On Thu, Feb 4, 2010 at 12:49 PM, Gena Cid  wrote:

> This is too strong! And too complex: think, for example, about doxygen
> comments. And about guard' names (I mean #ifndef-#define-#endif). And cmake-
> or Makefile-based projects?
>

I would say that guard names and comments are up to the user to fix. That's
trivial next to the hoops you currently have to jump through to refactor
files in Creator.



>
> If this feature be in QtC sometime, it must be an option!
>
> -|-
> Gena.
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Q t Creator

2010-02-04 Thread Gena Cid
This is too strong! And too complex: think, for example, about doxygen 
comments. And about guard' names (I mean #ifndef-#define-#endif). And cmake- or 
Makefile-based projects?

If this feature be in QtC sometime, it must be an option!

-|-
Gena.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to compile Qt-creator to support MADDE and on-device debugging?

2010-02-04 Thread Karsten Heimrich
Hi,

ext Rudenko Eugene schrieb:
> Hello, I tried to build qt-creator to support madde, I found that there are 
> some ssl lib, used for on-device development.
> 
> How to build Qt-creator for madde,

As I wrote in my last reply to you, one has to build Qt Creator 
from master. Export an env var like this: export 
QTCREATOR_WITH_MAEMO=1 and (re)run qmake. Once that has finished 
just compile the source as usual.

 >  is there are some external dependencies ?

No, there are no external dependencies other then the sources 
inside our repository.

> And is it possible to build some dev preview for MADDE development and share 
> it, like it was made for declarative interface support demonstration.

Since we consider the implementation experimental, we won't ship 
or promote it right now. Once it is stable enough we will enable 
the feature by default, announce it and provide snapshots, 
documentation etc.


Regards,
-- 
Karsten Heimrich - karsten.heimrich (AT) nokia.com
Software Engineer - Nokia, Qt Development Frameworks
Rudower Chaussee 13, 12489 Berlin, Germany

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] How to compile Qt-creator to support MADDE and on-device debugging?

2010-02-04 Thread Rudenko Eugene
Hello, I tried to build qt-creator to support madde, I found that there are 
some ssl lib, used for on-device development.

How to build Qt-creator for madde, is there are some external dependencies ?
And is it possible to build some dev preview for MADDE development and share 
it, like it was made for declarative interface support demonstration.

WIth best regards, Eugene Rudenko.


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Font size in QtCreator application

2010-02-04 Thread André Pönitz
On Thursday 04 February 2010 12:30:13 ext Tomás Ortí wrote:
> Hi.
> I’m using QtCreator and it is cool.
> I’ve tried it in Ubuntu and Suse.
> 
> But the font size of the menus, buttons, tools etc... is quite small.
> Is there a way to customize that?
> I’ve tried with gnome-control-center and kcontrol, with no luck.
> The default applications using Gnome (GTK) and Kde (Qt) change its size, but 
> not QtCreator.

qtconfig seems to work for me.

Andre'

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Font size in QtCreator application

2010-02-04 Thread Tomás Ortí
Hi.
I’m using QtCreator and it is cool.
I’ve tried it in Ubuntu and Suse.

But the font size of the menus, buttons, tools etc... is quite small.
Is there a way to customize that?
I’ve tried with gnome-control-center and kcontrol, with no luck.
The default applications using Gnome (GTK) and Kde (Qt) change its size, but
not QtCreator.

Any help will be appreciated.
Thanks.

Note: I can change the Text editor fonts through Tools | Options, but not
the rest.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread John Vilburn
Added a comment and voted.

On Feb 4, 2010, at 1:00 AM, Danny Price wrote:

> 
> 
> In my projects I always put one class in each file and name the file to match 
> the class. I suspect this is a pretty common practice. It would complete the 
> process for me if Rename Symbol had the option, when the symbol is a class 
> name, to rename the .cpp and .h files, update the #include statements that 
> reference the .h file, and update the .pro file.
> 
> 
> Vote on the request! http://bugreports.qt.nokia.com/browse/QTCREATORBUG-26 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Danny Price
>
> In my projects I always put one class in each file and name the file to
> match the class. I suspect this is a pretty common practice. It would
> complete the process for me if Rename Symbol had the option, when the symbol
> is a class name, to rename the .cpp and .h files, update the #include
> statements that reference the .h file, and update the .pro file.
>
>
Vote on the request! http://bugreports.qt.nokia.com/browse/QTCREATORBUG-26
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Eirik Ulvik


Den 04.02.2010 09:58, skrev John Vilburn:
>
>> Ah, define "proper". With Qt Creator 1.3 you can get quite some way with 
>> ctrl+shift+R (Rename Symbol) and ctrl+shift+U (Find Usages). See the context 
>> menu of the code editor.
>>
>>  
> In my projects I always put one class in each file and name the file to match 
> the class. I suspect this is a pretty common practice. It would complete the 
> process for me if Rename Symbol had the option, when the symbol is a class 
> name, to rename the .cpp and .h files, update the #include statements that 
> reference the .h file, and update the .pro file.
>
> John
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
IMHO this would be way beyond what I want the refactoring to do. It 
should not affect actual files and project settings.

Eirik
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread John Vilburn

> 
> Ah, define "proper". With Qt Creator 1.3 you can get quite some way with 
> ctrl+shift+R (Rename Symbol) and ctrl+shift+U (Find Usages). See the context 
> menu of the code editor.
> 

In my projects I always put one class in each file and name the file to match 
the class. I suspect this is a pretty common practice. It would complete the 
process for me if Rename Symbol had the option, when the symbol is a class 
name, to rename the .cpp and .h files, update the #include statements that 
reference the .h file, and update the .pro file.

John


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Shadow build problems

2010-02-04 Thread Eike Ziller

On Feb 4, 2010, at 1:41 AM, ext Stephen Chu wrote:

> I tried the shadow build feature and find some problems with it:

Unfortunately these are known issues with qmake:

> 1. If the project folder name has space in it, enabling shadow build 
> will cause moc to fail. It complains that there are too many input files.

qmake has problems with paths with spaces:
http://bugreports.qt.nokia.com/browse/QTBUG-7343

> 
> 2. On Windows, rcc.exe reports that the qrc file does not exist. I think 
> it's given a relative path from the build folder but the working dir is 
> the project dir. Placing the shadow dir next to the project one solves 
> it.

Yeah, we should really give a warning in Qt Creator if you specify a shadow 
build directory that qmake can't handle.

> 
> A couple of hoops to jump thru but it working now. Just FYI.
> 
> -- 
> Stephen Chu
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Eike Ziller
Hi,

On Feb 4, 2010, at 1:40 AM, ext John Bull wrote:

> And proper refactoring(/renaming) too?

Ah, define "proper". With Qt Creator 1.3 you can get quite some way with 
ctrl+shift+R (Rename Symbol) and ctrl+shift+U (Find Usages). See the context 
menu of the code editor.

> JB
> On Thu, Feb 4, 2010 at 12:24 AM, Jefferson Bandeira  wrote:
> Hello guys =)
> Is there any work currently going on to add a functionality like this to Qt 
> Creator, like the one in eclipse?
> -- 
> Jefferson Bandeira
> Undergraduating in Computer Science at UFRJ
> 
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 
> 
> 

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Bug reports

2010-02-04 Thread Eike Ziller
On Feb 3, 2010, at 9:34 PM, ext Charles N Burns wrote:

>> 
>> 
>> On Wed, Feb 3, 2010 at 2:23 AM, Eike Ziller  wrote:
>> 
>> On Feb 2, 2010, at 8:58 PM, ext Charles N Burns wrote:
>> 
>> > Thank you for the reply. I will file a report on the few issues which
>> > were not a misunderstanding of my own.
>> >
>> > Regarding #4, whitespace:
>> >
>> >>> 4) The option [Text Editor --> Behavior --> Clean Whitespace] is very
>> >>> useful, but it should not clean the whitespace of the currently active
>> >>> line of text. I often save with CTRL+S, and when I do this, the
>> >>> indentation of my current line (If otherwise blank) is lost. This can
>> >>> be annoying when saving a lot right before adding a new line.
>> >>
>> >> How could it be possible to know if you intend to continue typing or not?
>> >> If you are annoyed by that, perhaps doing it explicitly "Clean 
>> >> Whitespace" instead of the automatic cleaning on save works out for you.
>> >> Either invoke it from the Menu (Edit->Advanced->Clean Whitespace),
>> >> or assign a keyboard shortcut of your liking to it 
>> >> (Tools->Options->Environment->Keyboard, type "Clean Whitespace" as a 
>> >> filter for the list, assign a shortcut), and use that.
>> >
>> > What I had in mind was "Clean whitespace unless it is to the left of
>> > the keyboard cursor."
>> > This way, unnecessary whitespace would be removed, but it would not
>> > require manual re-indentation of the current line of code every time
>> > it's saved.
>> 
>> Yes, but in case you pressed return to create a new line, but don't intend 
>> to continue writing there, not cleaning the whitespace on the line of the 
>> cursor is wrong:
>> Press return (getting indented new line), save, go to a different file. 
>> Later you find out that "Clean Whitespace" didn't do it's job, without any 
>> hint why.
>> (Ever added a new line to make code visually a bit more separated?)
>> 
>> 

> True, though that could be solved by making any action other than typing code 
> into that line (saving, moving the cursor to a different line, even viewing a 
> different file) remove the space.

Unfortunately not:
Add line. Save. Move to a different file - if at this point the whitespace is 
removed, that change is not saved! I don't think "delayed second saving" is 
what we want either. And if the change is not saved, moving away from a file 
would mark it as modified, which would be very weird.

By the way, vim "solves" this issue by having the user explicitly state that 
they stop editing a file, before they can even save it. I don't want to go that 
way either :)

> I think it would be a nice option as a check box under "Clean Whitespace", 
> maybe "Exclude current line" or something. I don't want to encourage 
> featuritis,

But you do ;)

> but I suspect many people save frequently and would find this a nice minor 
> time saver.

I do save frequently, too. I fear that we have to live with the minor 
annoyance, since there seems to be no better solution, really. And for people 
who are too annoyed, there's still the option not to clean whitespace 
automatically, but to do that manually, completely "under your control".

> If you disagree, that's okay too. You and your team obviously know what you 
> are doing in making an IDE, and I'll certainly still use Qt Creator.

Thank you a lot!

Regards,
Eike

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator