kdelibs/kmdi

Thiago Macieira thiago.macieira at kdemail.net
Thu Jan 27 10:21:37 GMT 2005


Waldo Bastian wrote:
>On Wednesday 26 January 2005 19:20, Andras Mantia wrote:
>> I don't know if it's dangerous in this case or not, but unfortunately
>> the current way broke the kdelibs's compilation. Maybe in this case
>> all variants of the method should be reimplemented, even if you want
>> to reimplement only one?
>
>Yes, they should. It's one of those quirks of C++. Once you re-implement
> one function all it's overloaded brothers and sisters disappear out of
> scope.

You could add the following to your class definition:

	using QTabWidget::insertTab(QWidget *, const QString &, int = -1);
	using QTabWidget::insertTab(QWidget *, QTab *, int = -1);

When I write "could", I mean: it's perfectly valid C++, but you can't use 
it. g++ 2.95 doesn't implement it and, therefore, we can't use the 
construct.

-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

2. Tó cennan his weorc gearu, ymbe se circolwyrde, wearð se cægbord and se 
leohtspeccabord, and þa mýs cómon lator. On þone dæg, he hine reste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050127/898e3019/attachment.sig>


More information about the kde-core-devel mailing list