Mailinglist Archive: yast-commit (1095 mails)

< Previous Next >
[yast-commit] r52307 - /trunk/libyui/examples/Table-many-items.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Thu, 16 Oct 2008 14:45:35 -0000
  • Message-id: <20081016144535.7C2982F01E@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Thu Oct 16 16:45:35 2008
New Revision: 52307

URL: http://svn.opensuse.org/viewcvs/yast?rev=52307&view=rev
Log:
appropriate output for this class

Modified:
trunk/libyui/examples/Table-many-items.cc

Modified: trunk/libyui/examples/Table-many-items.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/libyui/examples/Table-many-items.cc?rev=52307&r1=52306&r2=52307&view=diff
==============================================================================
--- trunk/libyui/examples/Table-many-items.cc (original)
+++ trunk/libyui/examples/Table-many-items.cc Thu Oct 16 16:45:35 2008
@@ -208,7 +208,12 @@
YItem * item = table->selectedItem();

if ( item )
- valueField->setValue( item->label() );
+ {
+ YTableItem * tableItem = dynamic_cast<YTableItem *> (item);
+
+ if ( tableItem )
+ valueField->setValue( tableItem->label(1) );
+ }
else
valueField->setValue( "<none>" );
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages