1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-09 05:30:52 +02:00

Compare commits

...

8 Commits

Author SHA1 Message Date
Hugo Lindström
4d3ee34903 Snorenotify api update 2020-06-12 12:46:41 +02:00
Hugo Lindström
4ee462db4c Merge pull request #640 from Vogtinator/master
Fix "control reaches end of non-void function" in DelegateConfigWrapper
2020-06-05 21:26:11 +02:00
Fabian Vogt
57c387bba5 Fix "control reaches end of non-void function" in DelegateConfigWrapper 2020-06-05 21:20:12 +02:00
Hugo Lindström
d693bbf33f Merge pull request #670 from a17r/qt-5.15
Fix build with Qt 5.15 (missing QPainterPath)
2020-05-14 09:53:08 +02:00
Andreas Sturmlechner
4fb44c931b Fix build with Qt 5.15 (missing QPainterPath) 2020-05-09 00:27:18 +02:00
Hugo Lindström
27e8a665cf Remove circleci in favour of Github Actions 2019-12-20 18:44:41 +08:00
Hugo Lindström
fdca99e57d Accept Ipv4 or Ipv6 2019-12-20 18:17:17 +08:00
Hugo Lindström
e3bb74ce25 Merge pull request #666 from tomahawk-player/hugolm84-test-actions
Add Github Action for building on Linux
2019-12-20 18:14:56 +08:00
19 changed files with 98 additions and 67 deletions

View File

@@ -1,41 +0,0 @@
#!/bin/bash
get_repository_root(){
local REPOSITORY_ROOT="$(git rev-parse --show-toplevel)"
echo "$REPOSITORY_ROOT"
}
get_repository_subdir(){
REPOSITORY_ROOT=$(get_repository_root)
CUR_DIR=$(pwd)
SUB_DIR=$(echo "$CUR_DIR" | grep -oP "^$REPOSITORY_ROOT\K.*")
echo "$SUB_DIR"
}
docker-interactive() {
REPOSITORY_ROOT=$(get_repository_root)
SUB_DIR=$(get_repository_subdir)
echo "SUB_DIR: " "$SUB_DIR"
source $REPOSITORY_ROOT/.circleci/Docker/Docker.variables
echo "Starting container: " "$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER"
echo "Got command: " "$*"
USER_ID=$(id -u $USER)
echo "Using USER_ID:" $USER_ID
docker run --env LOCAL_USER_ID=$USER_ID \
--rm \
--interactive \
--volume $REPOSITORY_ROOT:/tmp/workspace \
--workdir /tmp/workspace$SUB_DIR \
--env "TERM=xterm-256color" \
--tty \
"$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER" /bin/bash
}
docker-help() {
echo "docker-interactive - Start an interactive bash session inside docker container and remove it on exit"
echo "docker-help - Show this help text"
}

View File

@@ -1,15 +0,0 @@
---
version: 2.0
jobs:
"Tomahawk - build, test":
docker:
- image: tomahawkmusicplayer/ubuntu:latest
steps:
- checkout
- run: /usr/local/bin/build-and-test.sh
workflows:
version: 2
build_and_test:
jobs:
- "Tomahawk - build, test"

79
Docker/docker-commands.sh Executable file
View File

@@ -0,0 +1,79 @@
#!/bin/bash
get_repository_root(){
local REPOSITORY_ROOT="$(git rev-parse --show-toplevel)"
echo "$REPOSITORY_ROOT"
}
get_repository_subdir(){
REPOSITORY_ROOT=$(get_repository_root)
CUR_DIR=$(pwd)
SUB_DIR=$(echo "$CUR_DIR" | grep -oP "^$REPOSITORY_ROOT\K.*")
echo "$SUB_DIR"
}
# Run commands inside docker container
_docker_run() {
REPOSITORY_ROOT=$(get_repository_root)
SUB_DIR=$(get_repository_subdir)
echo "SUB_DIR: " "$SUB_DIR"
source $REPOSITORY_ROOT/Docker/Docker.variables
echo "Starting container: " "$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER"
echo "Got command: " "$*"
USER_ID=$(id -u $USER)
echo "Using USER_ID:" $USER_ID
docker run --env LOCAL_USER_ID=$USER_ID \
--rm \
--volume $REPOSITORY_ROOT:/tmp/workspace \
--workdir /tmp/workspace$SUB_DIR \
--env "TERM=xterm-256color" \
--tty \
--privileged \
"$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER" \
$*
}
# 1st command: Run make target inside docker
docker-make() {
_docker_run make "${@}"
}
# 2nd command: Run bash command inside docker
docker-run() {
_docker_run "${@}"
}
# 3rd command: Run bash interactive inside docker
docker-interactive() {
REPOSITORY_ROOT=$(get_repository_root)
SUB_DIR=$(get_repository_subdir)
echo "SUB_DIR: " "$SUB_DIR"
source $REPOSITORY_ROOT/Docker/Docker.variables
echo "Starting container: " "$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER"
echo "Got command: " "$*"
USER_ID=$(id -u $USER)
echo "Using USER_ID:" $USER_ID
docker run --env LOCAL_USER_ID=$USER_ID \
--rm \
--interactive \
--volume $REPOSITORY_ROOT:/tmp/workspace \
--workdir /tmp/workspace$SUB_DIR \
--env "TERM=xterm-256color" \
--tty \
"$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VER" /bin/bash
}
docker-help() {
echo "docker-make - Run a make target inside docker container"
echo "docker-run - Run a specific bash command inside docker container and remove container on exit"
echo "docker-interactive - Start an interactive bash session inside docker container and remove it on exit"
echo "docker-help - Show this help text"
}

View File

@@ -51,7 +51,7 @@ SnoreNotifyPlugin::SnoreNotifyPlugin()
Snore::SnoreCore &snore = Snore::SnoreCore::instance();
snore.loadPlugins( Snore::SnorePlugin::Backend | Snore::SnorePlugin::SecondaryBackend );
snore.setDefaultSettingsValue("Silent", true, Snore::LocalSetting );
snore.setDefaultSettingsValue( {QStringLiteral("Silent"), Snore::LocalSetting}, true );
m_application = Snore::Application( qApp->applicationName(), m_defaultIcon );
m_application.hints().setValue( "use-markup", true );

View File

@@ -247,6 +247,7 @@ DelegateConfigWrapper::getTestConfigMessage( int code )
case Tomahawk::Accounts::ConfigTestResultAccountExpired:
return tr( "Your account has expired." );
}
return QString();
}

View File

@@ -28,6 +28,7 @@
#include <QApplication>
#include <QHideEvent>
#include <QPainter>
#include <QPainterPath>
#include <QPaintEvent>
#include <QShowEvent>

View File

@@ -32,6 +32,7 @@
#include <QLayout>
#include <QPainter>
#include <QPainterPath>
#include <QPixmap>
#include <QBitmap>
#include <QPalette>

View File

@@ -19,6 +19,8 @@
#include "DropDownButton.h"
#include <QMouseEvent>
#include <QPaintEvent>
#include <QPainterPath>
#include "Artist.h"
#include "Album.h"

View File

@@ -27,6 +27,7 @@
#include <QPixmap>
#include <QPaintEvent>
#include <QPainter>
#include <QPainterPath>
using namespace Tomahawk;

View File

@@ -22,6 +22,7 @@
#include <QApplication>
#include <QPaintEvent>
#include <QPainter>
#include <QPainterPath>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QHBoxLayout>

View File

@@ -19,10 +19,11 @@
#include "SearchButton.h"
#include <qcompleter.h>
#include <qevent.h>
#include <qlineedit.h>
#include <qpainter.h>
#include <QCompleter>
#include <QEvent>
#include <QLineEdit>
#include <QPainter>
#include <QPainterPath>
SearchButton::SearchButton(QWidget *parent)
: QAbstractButton(parent)

View File

@@ -93,11 +93,8 @@ private slots:
Servent* servent;
listenAllBasic( &servent );
// Check for IPv4 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) );
// Check for IPv6 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
// Check for IPv4/v6 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) || servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
// Verify that all interface addresses are whitelisted.
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )

View File

@@ -24,6 +24,7 @@
#include <QDebug>
#include <QPainter>
#include <QPainterPath>
#include <QPaintEvent>
#include <QVBoxLayout>

View File

@@ -24,6 +24,7 @@
#include <QMouseEvent>
#include <QPainter>
#include <QPainterPath>
#include <QPropertyAnimation>
#include <QStyleOptionButton>
#include <QPixmap>

View File

@@ -29,8 +29,9 @@
#include "Source.h"
#include "Track.h"
#include <QPainter>
#include <QDialog>
#include <QPainter>
#include <QPainterPath>
#include <QPropertyAnimation>
#define ARROW_HEIGHT 6