Giter Site home page Giter Site logo

crapp / qaccordion Goto Github PK

View Code? Open in Web Editor NEW
40.0 8.0 11.0 351 KB

An Accordion Widget for the Qt application framework

Home Page: http://crapp.github.io/qaccordion

License: GNU General Public License v3.0

CMake 5.86% C++ 94.14%
qt5 qt-widgets cpp cpp14 cmake accordion accordion-widget

qaccordion's People

Contributors

crapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qaccordion's Issues

doubleclick does not handle single click

At least in qt6, this is happening. When you click on the clickable frame the first time, single click registers like it should. If you click a second time, the double click handler catches the event instead of the single click, and it's not propagated to mousePressEvent at all. It doesn't matter how long you wait, the double click handler still catches the second click. The only time it doesn't is if you move the mouse off of the clickable frame.

The fix is to call the base implementation of mouseDoubleClickEvent instead of just ignoring the event.

Appears to be compatible with qt5 anyways.

Release under LGPL v2.1, MIT, or Apache license?

Would you consider releasing this under the LGPL v2.1, MIT, or Apache license? I'd like to use it (or at least try it out), but its current license of GPLv3 is incompatible with using it in a commercial context.

MSVC not supported

CMakeLists does not support MSVC compiler

in

# Compiler-specific C++11 activation.
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
    execute_process(
        COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
    if (NOT (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7))
        message(FATAL_ERROR "${PROJECT_NAME} requires g++ 4.7 or greater.")
    endif ()
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
    if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
    elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
    endif()
else ()
    message(FATAL_ERROR "Your C++ compiler does not support C++11.")
endif ()

add an else for MSVC (also I think you need to unquote the variables), it needs no additional flags.

second thing:
add the configuration of the output to NMake Makefiles otherwise it will generate unusable project files instead of makefiles

In alternative, include the classic .pro files that can be used with qmake

Feature request: Resize window as the accordion expands/shrinks

It would be super useful if the window could be resized as the accordion expands/shrinks; also there should be the possibility to have more than one accordion "details" open.

Like the macOS "Get Info..." dialog works, which changes its size depending on how many sections are collapsed:

image

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.