Bug 365312 - Only 20 entries displayed
Summary: Only 20 entries displayed
Status: CONFIRMED
Alias: None
Product: kwordquiz
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Hedlund
URL:
Keywords:
: 372871 373132 377848 399448 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-10 04:18 UTC by johnniefiv-kdebug
Modified: 2019-05-17 02:10 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnniefiv-kdebug 2016-07-10 04:18:55 UTC
On UBUNTU 16.04 when I load a file which was created with wordquiz in Ubuntu 12.04, only the first 20 entries of the quiz are shown.  

Reproducible: Always

Steps to Reproduce:
1.  Open kwordquiz on Ubuntu 16.04
2.  Open kvtml file with greater than 20 entires (note, file was made using version that was available with 12.04 in 2012
3.  Only 20 questions are displayed when file should have over 100

Actual Results:  
Only 20 questions are displayed when file should have over 100

Expected Results:  
Entire file with 200 plus questions is displayed

The quiz file was created in 2012 and functioned normally at that time.  Trying to use today and it does not work on kwordquiz with Ubuntu 16.04.  I even tried installing the full kubuntu desktop and the results did not change.  I was able to re-produce this error on different machines using 16.,04.
Comment 1 Burkhard Lück 2016-07-10 09:52:44 UTC
Confirmed with 0.9.2 (15.12.3)  and master compiled from sources
Comment 2 Christian Herenz 2016-08-29 13:03:34 UTC
I can confirm this with 0.9.2 compiled with Frameworks 5.25.0.

This is a very ugly bug as this makes my KWordquiz files all useless.
Comment 3 Burkhard Lück 2016-12-02 05:46:33 UTC
*** Bug 373132 has been marked as a duplicate of this bug. ***
Comment 4 Burkhard Lück 2016-12-02 05:47:18 UTC
*** Bug 372871 has been marked as a duplicate of this bug. ***
Comment 5 Burkhard Lück 2017-03-21 06:00:52 UTC
*** Bug 377848 has been marked as a duplicate of this bug. ***
Comment 6 Rex Dieter 2018-06-13 17:56:47 UTC
Appears to be a hardcoded limit? near:

https://cgit.kde.org/kwordquiz.git/tree/src/kwordquiz.cpp#n495

void KWordQuizApp::initDocument()
{
  m_doc = new KEduVocDocument(this);
  m_doc->setGenerator(QStringLiteral("kwordquiz %1").arg(KWQ_VERSION));
  ///@todo New kvtml documents have a locale setting which should contain the language they are written in.
  /* it would be nice to support that somehow. get hot new stuff for KHangman and KAnagram already uses this. */
  m_doc->appendIdentifier();
  m_doc->identifier(0).setName(i18n("Column 1"));
  // m_doc->identifier(0).setLocale("en");
  m_doc->appendIdentifier();
  m_doc->identifier(1).setName(i18n("Column 2"));
  // m_doc->identifier(1).setLocale("en");

  for (int i=0; i<20; i++)
  {
    m_doc->lesson()->appendEntry(new KEduVocExpression());
  }
}
Comment 7 Mizuki 2018-11-12 09:59:59 UTC
Absolutely, the data is always there opening in text editor, just not visible in rows, in fact not just editor, records more than 20 don't exist in flash cards or quiz.
Comment 8 Christoph Feck 2019-01-17 05:39:36 UTC
*** Bug 399448 has been marked as a duplicate of this bug. ***