[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    error in a test with className()
From:       Grégoire_Alexandre <gregoire.alex () easynet ! be>
Date:       2004-12-16 18:36:31
Message-ID: 200412161936.31783.gregoire.alex () easynet ! be
[Download RAW message or body]

Hi guys!

I got a problem with this function : w->className() doenst seem to be equal to 
"beConsole"..... but when I print the output the value (w->className) to the 
console it says "beConsole" ( without the quotes ). I dont get it why ....

Can somebody help ?


m_pActiveConsole is declared private in the same class as : 
beConsole* m_pActiveConsole;

void beIRC::updateMenus(QWidget * w)
{
	//update also m_pActiveConsole
	qDebug("Updating menus");
	if(w->className() == "beConsole")
	{
		m_pActiveConsole = (beConsole*)w;
		std::cout << w << '\n';
		std::cout << m_pActiveConsole << '\n';
	}
	else
	{
		qDebug(w->className());
		qDebug("so what is the className?");
	}
}
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic