Git Product home page Git Product logo

Comments (5)

mirukana avatar mirukana commented on May 27, 2024

This isn't easy to implement currently, but not impossible.
The difficulties come from Qt Quick (the QML library that provides us GUI controls)'s lack of a proper nested tree view component and us having to fake one out of a flat ListView, although it seems that things are finally progressing (QTBUG-61630).

from mirage.

IngwiePhoenix avatar IngwiePhoenix commented on May 27, 2024

I assume that this means there is currently no way to nest what is used for the initial account "tab"? I will have to look into Qt Quick; never used Qt before, in fact...

from mirage.

rinigus avatar rinigus commented on May 27, 2024

Well, we have to flatten it with iterations. Not super trivial, indeed, but possible. As you mention, ListView should do with separate delegates assigned for rooms and headers indicating room type. Probably, something like you do for multiple accounts already:

  • Account name
    • direct messages
      • peer 1
      • peer 2
    • regular rooms
      • room 1
      • room 2
    • low priority
      ...

Compared to current design, seems like just a header type is introduced. Sorting as well, in addition.

from mirage.

mirukana avatar mirukana commented on May 27, 2024

I assume that this means there is currently no way to nest what is used for the initial account "tab"? I will have to look into Qt Quick; never used Qt before, in fact...

I'm not sure what you mean by "initial account tab"

Compared to current design, seems like just a header type is introduced. Sorting as well, in addition.

We have to figure out how that will work on the python side. The "all_rooms" model used by the account-room list catches events emitted by the "accounts" and all the ("<account_user_id>", "rooms") models to aggregate their items, but categories have a different nature: they are not pre-existing items coming from other sources.

I wish we could simply use the ListView.section properties, but these are impossible to collapse by design (the section item stops existing if it has 0 "children") and buggy (gets out of bounds for some reason when filtering rooms and only one or two match is left).

from mirage.

Cadair avatar Cadair commented on May 27, 2024

An alternative (maybe easier to implement) way to implement this would be to allow hiding rooms from the list based on tags. i.e. have a way to show only rooms with a tag or hide rooms with a tag.

from mirage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.