Re: [Development] Disconnect Signal 0

2013-03-07 Thread Thiago Macieira
On sexta-feira, 8 de março de 2013 07.29.16, Olivier Goffart wrote: > I think it is best to handle properly the cases in each reimplementation of > disconnectNotify. Effectively, disconnectNotify will get a null pointer (Qt4) or an invalid QMetaMethod (Qt5) to mean that all signals are being disco

Re: [Development] Disconnect Signal 0

2013-03-07 Thread Olivier Goffart
On Thursday 07 March 2013 23:58:36 David Narvaez wrote: > Hi all, > > I was taking a look at bug 29498[0] and the explanation is pretty > clear on what's happening: disconnect admits char * signal = 0 as a > parameter (which means all signals) but then forwards that parameter > to other calls that

[Development] 答复: cmake mingw qt

2013-03-07 Thread 彭亮
sorry, i figure out, i made some mistakes. thanks -Original Message- From: development-bounces+pengliang=founder@qt-project.org 代表 pengliang(彭亮) Sent: 2013-3-8 (星期五) 14:10 To: development@qt-project.org Subject: [Development] cmake mingw qt hello, my qt built by mingw, and now,

[Development] cmake mingw qt

2013-03-07 Thread 彭亮
hello, my qt built by mingw, and now, i want to create makefile use cmake. so, i run : cmake -G"MinGW Makefiles", and i get some error messages: CMake Error: Error: generator : MinGW Makefiles Does not match the generator used previously: Visual Studio 10 Either remove the CMakeCache.txt file or

[Development] Disconnect Signal 0

2013-03-07 Thread David Narvaez
Hi all, I was taking a look at bug 29498[0] and the explanation is pretty clear on what's happening: disconnect admits char * signal = 0 as a parameter (which means all signals) but then forwards that parameter to other calls that apparently do not commit to support 0 as a possible value. I can t

Re: [Development] ICU and Windows

2013-03-07 Thread John Layt
On Thursday 07 Mar 2013 16:16:05 Koehne Kai wrote: > >> On 02/06/2013 11:20 PM, Koehne Kai wrote: > >> > [...] > >> > That is what we should do indeed. I learned from > >> > > >> > http://userguide.icu-project.org/icudata > >> > > >> > that one can also ship the ICU data in separate .data files,

Re: [Development] ICU and Windows

2013-03-07 Thread Thiago Macieira
On quinta-feira, 7 de março de 2013 16.16.05, Koehne Kai wrote: > I'm not 100% happy with the patch though because we have an inherent timing > problem: ICU data might be accessed & cached before QCoreApplication is > created and has opened the .dat file. This happens in fact already by > default,

Re: [Development] [QML] Assigning ints to enumeration properties

2013-03-07 Thread Alan Alpert
On Wed, Mar 6, 2013 at 11:58 PM, Knoll Lars wrote: > > > On 3/6/13 8:23 PM, "Alan Alpert" <4163654...@gmail.com> wrote: > >>On Wed, Mar 6, 2013 at 3:11 AM, Laszlo Papp wrote: >>> On Wed, Mar 6, 2013 at 9:48 AM, Olivier Goffart >>>wrote: This is not a warning, this is an error in C++ >>

Re: [Development] ICU and Windows

2013-03-07 Thread Koehne Kai
>> -Original Message- >> From: development-bounces+kai.koehne=digia@qt-project.org >> [mailto:development-bounces+kai.koehne=digia@qt-project.org] On >> Behalf Of Joseph Crowell >> Sent: Thursday, February 07, 2013 1:56 AM >> To: development@qt-project.org >> Subject: Re: [Developme

Re: [Development] QTimeZone available for review

2013-03-07 Thread Mitch Curtis
On 03/07/2013 01:46 PM, Mark wrote: > On Thu, Mar 7, 2013 at 11:10 AM, John Layt wrote: >> Hi, >> >> I've finally pushed my proposed QTimeZone support to Gerrit for initial >> review >> for possible inclusion in 5.1. >> [...] >> >> Cheers! >> >> John. > > Hi John, > > Let me just congratulate you

Re: [Development] QTimeZone available for review

2013-03-07 Thread Mark
On Thu, Mar 7, 2013 at 11:10 AM, John Layt wrote: > Hi, > > I've finally pushed my proposed QTimeZone support to Gerrit for initial review > for possible inclusion in 5.1. > > The reviews are: > > QLocale - Add private countryToCode() method > https://codereview.qt-project.org/50064 > > QDateTime

[Development] 答复: 答复: 答复: [Qt-interest] QMultiHash

2013-03-07 Thread 彭亮
values(key) returns a list of all the values with the key. remove(key) removes all the values for key. Then reinsert new values for key. But why do you want to put the same pair multiple times? martin From: development-bounces+martin.smith=digia@qt-project.

Re: [Development] 答复: 答复: [Qt-interest] QMultiHash

2013-03-07 Thread Smith Martin
values(key) returns a list of all the values with the key. remove(key) removes all the values for key. Then reinsert new values for key. But why do you want to put the same pair multiple times? martin From: development-bounces+martin.smith=digia@qt-project.

[Development] [Announce] Qt Creator 2.7.0 RC released

2013-03-07 Thread List for announcements regarding Qt releases and development
We are happy to announce the Qt Creator 2.7.0 release candidate today. Blog post: http://blog.qt.digia.com/blog/2013/03/07/qt-creator-2-7-0-rc-released/ Download: http://releases.qt-project.org/qtcreator/2.7.0-rc/ Best regards from the Qt Creator Team -- Eike Ziller, Senior Software Engineer -

[Development] 答复: 答复: [Qt-interest] QMultiHash

2013-03-07 Thread 彭亮
hi QMultiHash; it allow you to insert some same keys, i have to find some string whether exist in the hash, if exist, then set values of hash to 0. my program is used to remove duplicate rows in two files. so, i read file1 to QMultiHashhash, qstring are content of rows, lon

Re: [Development] [Qt-interest] QMultiHash

2013-03-07 Thread André Somers
Op 7-3-2013 10:24, pengliang(??) schreef: Hi All QMultiHashhh; I need to find some key and change their values. I found If I use QmutableHashIteratorit , its bool *findNext *( const T &/value/) Its parameter is a value, not a key. So I need to : While(it.hasNext()) { It.next(

Re: [Development] 答复: [Qt-interest] QMultiHash

2013-03-07 Thread Danny Koppel
Hi, If you always use replace, there won’t be double keys. This is depending on your implementation. Other option: Use the find() method on the class. Then use an iterator on the results to assign the new value. But if I read your mail, you suggest that you always replace ALL values with the s

[Development] QTimeZone available for review

2013-03-07 Thread John Layt
Hi, I've finally pushed my proposed QTimeZone support to Gerrit for initial review for possible inclusion in 5.1. The reviews are: QLocale - Add private countryToCode() method https://codereview.qt-project.org/50064 QDateTime - Improve and expose Qt::OffsetFromUtc https://codereview.qt-project

Re: [Development] 答复: [Qt-interest] QMultiHash

2013-03-07 Thread Tomasz Siekierda
On 7 March 2013 10:58, pengliang(彭亮) wrote: > 2. so I need to use Qmap, > > I found qt source code below, so I think Qhash is ordered by > long, am I right? That's probably just the hash value. As far as you - user - are concerned, this is arbitrarily ordered. __

[Development] 答复: [Qt-interest] QMultiHash

2013-03-07 Thread 彭亮
Hi 1. QmultiHash replace() is only replace first item, I want to replace all values when key is matched. Qt docs : if there are multiple items with the key, the most recently inserted item's value is replaced with value. Who have a better method? 2. so I need to use Qmap, I found q

Re: [Development] [Qt-interest] QMultiHash

2013-03-07 Thread Danny Koppel
Hello, I don't know if I understand you correctly but the QMultiHash class has the function replace which does what you describe. It replaces the value of an existing key or creates a new one if the key doesn't exist yet. About point 2: the documentation describes it as follows: "When iterating

[Development] [Qt-interest] QMultiHash

2013-03-07 Thread 彭亮
Hi All QMultiHashhh; I need to find some key and change their values. I found If I use QmutableHashIteratorit , its bool findNext ( const T & value ) Its parameter is a value, not a key. So I need to : While(it.hasNext()) { It.next(); If(it.key() == ikey) { It.setValue(ivalue); }