Sha256: c1a6b3355f37c816e94157f53cc87ef8a0ed246a8f1baaab4bd564d8ef203ff5

Contents?: true

Size: 350 Bytes

Versions: 15

Compression:

Stored size: 350 Bytes

Contents

# Qt-specific accept/reject. Including class must provide #result
module Clevic
  module AcceptReject
    def accepted?
      [ Qt::Dialog::Accepted, Qt::MessageBox::Yes, Qt::MessageBox::Ok ].include?( result )
    end

    def rejected?
      [ Qt::Dialog::Rejected, Qt::MessageBox::No, Qt::MessageBox::Cancel ].include?( result )
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
clevic-0.14.6 lib/clevic/qt/accept_reject.rb
clevic-0.14.5 lib/clevic/qt/accept_reject.rb
clevic-0.14.4 lib/clevic/qt/accept_reject.rb
clevic-0.14.3 lib/clevic/qt/accept_reject.rb
clevic-0.14.2 lib/clevic/qt/accept_reject.rb
clevic-0.14.1 lib/clevic/qt/accept_reject.rb
clevic-0.14.0 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b12 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b11 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b10 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b9 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b6 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b5 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b3 lib/clevic/qt/accept_reject.rb
clevic-0.13.0.b2 lib/clevic/qt/accept_reject.rb