GtkD - how to list 0..100K strings [solved]

mark mark at qtrac.eu
Mon Apr 27 10:28:04 UTC 2020


I renamed the class shown in my previous post from View to 
InnerView, then created a new View class:

class View : ScrolledWindow {
     import qtrac.debfind.modelutil: NameAndDescription;

     InnerView innerView;

     this() {
         super();
         innerView = new InnerView;
         addWithViewport(innerView);
     }

     void clear() {
         innerView.viewData.clear;
     }

     void populate(NameAndDescription[] namesAndDescriptions) {
         innerView.viewData.populate(namesAndDescriptions);
     }
}




More information about the Digitalmars-d-learn mailing list