[Lsb-messages] /var/www/bzr/lsb/devel/azov-qt4-tests r41: Disable QListView::isRowHidden() test (bug 3275).

Jeff Licquia licquia at linuxfoundation.org
Thu May 2 19:49:54 UTC 2013


------------------------------------------------------------
revno: 41
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: azov-qt4-tests-stablefixes
timestamp: Thu 2013-05-02 15:49:54 -0400
message:
  Disable QListView::isRowHidden() test (bug 3275).
  
  It's arguably invalid to manipulate rows on a view when there's no
  underlying model.  Qt's behavior in this case has changed over time,
  and arguably is more correct now (always return false in this case).
modified:
  LSB_Toolkit_Qt-t2c/Qt4_Widgets-t2c/src/QListView/QListView.t2c
-------------- next part --------------
=== modified file 'LSB_Toolkit_Qt-t2c/Qt4_Widgets-t2c/src/QListView/QListView.t2c'
--- a/LSB_Toolkit_Qt-t2c/Qt4_Widgets-t2c/src/QListView/QListView.t2c	2009-03-05 15:33:50 +0000
+++ b/LSB_Toolkit_Qt-t2c/Qt4_Widgets-t2c/src/QListView/QListView.t2c	2013-05-02 19:49:54 +0000
@@ -63,7 +63,6 @@
 // QListView::layoutMode() const
 // QListView::metaObject() const
 // QListView::setGridSize(QSize const&)
-// QListView::isRowHidden(int) const
 // QListView::clearPropertyFlags()
 // QListView::movement() const
 // QListView::resizeMode() const
@@ -2914,55 +2913,6 @@
 
 <BLOCK>
 <TARGETS>
-    QListView::isRowHidden(int) const
-</TARGETS>
-
-<DEFINE>
-#define PAR_0    <%0%>
-#define PAR_1    <%1%>
-</DEFINE>
-
-<CODE>
-
-    //PREAMBLE
-    #ifdef Q_WS_X11
-    bool useGUI = getenv( "DISPLAY" ) != 0;
-    #else
-    bool useGUI = TRUE;
-    #endif
-    int app_argc = 1;
-    char* app_argv[2]={"", NULL};
-    QApplication::setColorSpec(QApplication::ManyColor);
-    QApplication* app = new QApplication(app_argc, app_argv, useGUI);
-
-    //PARAMETER INITIALIZATION
-    QListView * Obj = PAR_0;
-
-    //INIT CODE
-    Obj->setGridSize(QSize(100, 100));
-    Obj->setRowHidden(5, true);
-
-    //TARGET INTERFACE
-    bool
-    Return = Obj->isRowHidden(PAR_1);
-    //CHECK RETURN VALUE
-    REQ("isRowHidden.01",
-    "CONSTRAINT FOR RETURN FAILED: '$0 == true'",
-    Return == true);
-
-    //FINALIZATION
-    QTimer::singleShot(100, app, SLOT(quit()));
-    app->exec();
-</CODE>
-
-<PURPOSE>
-new QListView()
-5
-</PURPOSE>
-</BLOCK>
-
-<BLOCK>
-<TARGETS>
     QListView::clearPropertyFlags()
 </TARGETS>
 



More information about the lsb-messages mailing list