This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QFileDialog *f = new QFileDialog(); | |
f->setOption(QFileDialog::DontUseNativeDialog, true); // we need qt layout | |
QGridLayout *layout = static_cast<QGridLayout *>(f->layout()); | |
QList<QPair<QLayoutItem *, QList<int> > > moved_items; | |
f->show(); | |
for (int i = 0; i < layout->count(); i++) { | |
int row, column, rowSpan, columnSpan; | |
layout->getItemPosition(i, &row, &column, &rowSpan, &columnSpan); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//IconLabel is subclass of QLabel | |
//Note: if you wanna keep Quality , you should create pixmap for all sizes (so override resizeEvent !) | |
// this method is working normally | |
QPixmap IconLabel::FromSvgToPixmap(const QString &SvgFile, | |
const QSize &ImageSize) { | |
QSvgRenderer SvgRenderer(SvgFile); | |
QPixmap Image(ImageSize); | |
QPainter Painter; | |
Image.fill(Qt::transparent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bglrtl | |
{ | |
font-size:17px; | |
margin-right:137px; | |
margin-left:157px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef COLLAPSED_WIDGET_H | |
#define COLLAPSED_WIDGET_H | |
#include <QFrame> | |
#include <QGridLayout> | |
#include <QParallelAnimationGroup> | |
#include <QPropertyAnimation> | |
#include <QScrollArea> | |
#include <QToolButton> | |
#include <QWidget> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download RapidJSON | |
ExternalProject_Add( | |
rapidjson | |
PREFIX "vendor/rapidjson" | |
GIT_REPOSITORY "https://github.com/Tencent/rapidjson.git" | |
GIT_TAG f54b0e47a08782a6131cc3d60f94d038fa6e0a51 | |
TIMEOUT 10 | |
CMAKE_ARGS | |
-DRAPIDJSON_BUILD_TESTS=OFF | |
-DRAPIDJSON_BUILD_DOC=OFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout config tool: https://zed0.co.uk/clang-format-configurator/ | |
# Or http://cf.monofraps.net/ | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
# https://github.com/01org/parameter-framework/blob/master/.clang-format | |
# Tested on: clang-format version 6.0.1 | |
# Common settings | |
BasedOnStyle: WebKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://github.com/google/benchmark/issues/1157 | |
#include <benchmark/benchmark.h> | |
#include <vector> | |
#include <future> | |
#include <numeric> | |
#include <span> | |
using NumberType = float; | |
using ReduceType = double; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
win1 = window.open("https://www.binance.com/en/price/binance-usd") | |
var windowObject = win1.document | |
var counter = 0 | |
timer1 = setInterval(function() { | |
win1.location.href = "https://www.binance.com/en/price/binance-usd" | |
counter++ | |
console.log("Counter: ", counter) | |
// if (windowObject < win1.document || windowObject > win1.document) { | |
// alert("Hi diffrent page") | |
// } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - Try to find FFMPEG | |
# Once done this will define | |
# FFMPEG_FOUND - System has FFMPEG | |
# FFMPEG_INCLUDE_DIRS - The FFMPEG include directories | |
# FFMPEG_LIBRARIES - The libraries needed to use FFMPEG | |
# FFMPEG_LIBRARY_DIRS - The directory to find FFMPEG libraries | |
# | |
# written by Roy Shilkrot 2013 http://www.morethantechnical.com/ | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ProcedualSpline.h" | |
#include "AwesomeStruct.h" | |
FAwesomeStruct FAwesomeStruct::BuildAwesomeStruct( | |
FVector AwesomeVector, | |
bool AwesomeBoolean, | |
float AwesomeFloat, | |
int32 AwesomeInteger, | |
FRotator AwesomeRotator | |
) |
OlderNewer